I want to detect when the user is trying to scroll up or down on my page, but since I don\'t want to allow the actual scrolling I have set an overflow:hidden body. The code
Here's a jQuery-solution.
$(document).bind('mousewheel', function(e) { var delta = e.originalEvent.wheelDelta; console.log('The mouse delta is : ' + delta); });
jQuery Doc - .bind()