I am testing the following code:
$(window).bind('mousewheel', function(e) {
alert(e.wheelDelta);
});
Every time I move the mousehweel, I get “undefined”. Can anyone help with this as I am trying to capture the mousewheel and move a div based on it.
I think you’ll have to do a little bit more work to get it working in all browsers – or try the jquery-mousewheel extension
If the extension still does not work properly, you might try this modified version I created a while ago:
I just tested it in Firefox and Chrome, but I don’t know whether it works in other browsers. Usage: