|
MouseWheel
jquery.mousewheel.js
IntroductionAdds mouse wheel support for your application! Just call mousewheel to add the event and call unmousewheel to remove the event. Basic usage
var callback = function(e, delta) {
console.log(e.pageX, e.pageY, delta);
// optionally you can prevent default behavior
e.stopPropagation();
e.preventDefault();
};
$('#test').mousewheel(callback);
Removing handler
$('#test').unmousewheel(callback);
|
Sign in to add a comment