Skip to content
Cross browser wheel event
JavaScript
Find file
Latest commit be34705 = bump
Failed to load latest commit information.
dist bump
src fixHooks was incorrectly set when using mousewheel event
test First commit
.bowerrc First commit
.editorconfig First commit
.gitignore Add bower instructions to README
.jshintrc First commit
.travis.yml First commit
CONTRIBUTING.md First commit
Gruntfile.js First commit
LICENSE Initial commit
README.md Add bower instructions to README
bower.json v0.1.1
package.json 0.1.2

README.md

Cross browser wheel event

wheel event with .deltaX and .deltaY properties, following this MDN documentation.

jQuery( 'selector' ).on('wheel', function( event ) {
    console.log( event.deltaX, event.deltaY );
});

Install

With Bower.

bower install jquery.wheel.js

Or download the production version or the development version.

Something went wrong with that request. Please try again.