Skip to content
A jQuery plugin that adds cross-browser mouse wheel support. http://plugins.jquery.com/project/mousewheel
JavaScript
Find file
Pull request Compare This branch is 129 commits behind jquery:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
ChangeLog.markdown
LICENSE.txt
README.markdown
jquery.mousewheel.js

README.markdown

jQuery Mouse Wheel Plugin

A jQuery plugin that adds cross-browser mouse wheel support.

In order to use the plugin, simply bind the "mousewheel" event to an element. It also provides two helper methods called mousewheel and unmousewheel that act just like other event helper methods in jQuery. The event callback receives three extra arguments which are the normalized "deltas" of the mouse wheel.

Here is an example of using both the bind and helper method syntax.

// using bind
$('#my_elem').bind('mousewheel', function(event, delta, deltaX, deltaY) {
    console.log(delta, deltaX, deltaY);
});

// using the event helper
$('#my_elem').mousewheel(function(event, delta, deltaX, deltaY) {
    console.log(delta, deltaX, deltaY);
});

License

The expandable plugin is licensed under the MIT License (LICENSE.txt).

Copyright (c) 2010 Brandon Aaron

Something went wrong with that request. Please try again.