github.com/monospaced/hamster.js
A standalone javascript library for cross-browser mouse wheel support.
In addition to normalising the wheel event, the event callback receives 3 extra arguments which are the normalized “deltas” of the mouse wheel.
Hamster(el).wheel(function(event, delta, deltaX, deltaY){ console.log(delta, deltaX, deltaY); });
No jQuery or other libraries required, but an adapter for AngularJS is available. Tested in these core browsers.
1.
2.
3.
4.
5.
6.
7.