wheel
This module unifies handling of mouse whee event across different browsers.
See MDN
for more details.
Usage
var addWheelListener = require('wheel').addWheelListener;
var removeWheelListener = require('wheel').removeWheelListener;
addWheelListener(domElement, function (e) {
});
removeWheelListener(domElement, function);
You can also use a shortcut for addWheelListener:
var addWheelListener = require('wheel');
addWheelListener(domElement, function (e) {
});
install
With npm do:
npm install wheel
license
MIT