I am using jquery.mousewheel.js as a part of the jQuery jScrollPane plugin.
I want to disable the mousewheel at some point.
Could someone please recommend a jQuery statement that can do it?
Thank you!
Mrchief
Something like this:
$("#menu").bind("mousewheel", function() {
return false;
});
Try using .unmousewheel()
, it should also work.
odam.fm
the container you must unbind is jspPane
In my case i needed to disable it only in the boxes inside #myOuterContainer
$('#myOuterContainer .jspPane').bind('mousewheel',function(){ return false; });
来源:https://stackoverflow.com/questions/6702116/jquery-mousewheel-how-to-disable