Ad

Disable Revslider Mousewheel To Scroll As Normal Inside A Certain Div

I'm using revslider plugin with one page vertical slide and a form in the first slide. I would like to prevent all revslider scroll function when inside the form div.

Can it be possible to prevent revslider scroll function and use the normal scroll inside the form?

Any help would be appreciated !

enter image description here

Ad

Answer

Solved by adding this, referred to this post

// prevent scroll when inside form div
$(window).bind('mousewheel DOMMouseScroll', function(event){ return false});
$('#YourID').bind('mousewheel DOMMouseScroll', function (e) { return false; });
Ad
source: stackoverflow.com
Ad