The event callback receives 3 extra arguments which are the normalized “deltas” of the mouse wheel.
var hamster = ; // boolean is whether passive = true | falsehamster;// destroyhamster;
The second parameter to Hamster() is optional, and indicates whether to mark the event listener as passive, for performance. Please do your research about passive event listeners before turning this on.
No jQuery or other libraries are required, but an adapter for AngularJS is available.
Tested in these core browsers.
npm install hamsterjs bower install hamsterjs