A standalone javascript library for cross-browser mouse wheel support.
The event callback receives 3 extra arguments which are the normalized “deltas” of the mouse wheel.
var hamster = Hamster(el);
hamster.wheel(function(event, delta, deltaX, deltaY){
console.log(delta, deltaX, deltaY);
});
// destroy
hamster.unwheel();
No jQuery or other libraries required, but an adapter for AngularJS is available.
Tested in these core browsers.
bower install hamsterjs