Install wheel-gestures using your package manager:
The callback you added with
.on('wheel', callback) now gets called for each recognized wheel event, with normalized information (eg. deltas) and metadata like velocity.
Avoid adding multiple elements with
.observe() that are ancestors/descendants.
By default, wheel-gestures prevents the default (scrolling) on all axis. If you are only interested in allowing the user to perform a wheel gesture on one axis but keep the default behavior on the other, see the Options page and customize it.
Examples (coming soon)
Due to the many differences between different browsers, operating systems and input devices, wheel events are not the easiest to work with. Which makes many developers neglect the wheel event as an input event to their web apps. Others use the wheel event already, but are overwhelmed by their complexity and handle them in a suboptimal way.
This small lib normalizes wheel events, provides useful meta data and an easier API.
Don't use this library to implement unresponsive page scroll jacking.