Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery Mousewheel: How to disable?

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!

like image 873
Dimitri Vorontzov Avatar asked Jul 15 '11 02:07

Dimitri Vorontzov


2 Answers

Something like this:

$("#menu").bind("mousewheel", function() {
    return false;
});
like image 65
Mrchief Avatar answered Sep 22 '22 07:09

Mrchief


Try using .unmousewheel(), it should also work.

like image 5
gentimouton Avatar answered Sep 21 '22 07:09

gentimouton