cross-browser wheel event handling
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
component.json
readme.md

readme.md

deprecated

mousewheel

cross-browser wheel� event handling based on Mozilla wheel shim

installation

$ component install ramitos/mousewheel

example

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);

api

.bind(el, callback, [capture])

.unbind(el, callback, [capture])

license

MIT