This repository is a mirror of the component module ramitos/mousewheel. It has been modified to work with NPM+Browserify. You can install it using the command npm install npmcomponent/ramitos-mousewheel
. Please do not open issues or send pull requests against this repo. If you have issues with this repo, report it to npmcomponent.
cross-browser wheel�
event handling based on Mozilla wheel shim
$ component install ramitos/mousewheel
var mousewheel = require('mousewheel');
var onScroll = function (e) {
console.log(e.deltaX);
console.log(e.deltaY);
};
setTimeout(function () {
mousewheel.unbind(document.body, onScroll);
}, 10000);
mousewheel.bind(document.body, onScroll);
MIT