Observe Element(s)
Add
To watch for wheel gestures on an element, add the element with .observe to the WheelGestures instance:
Remove
When you are ready to cleanup the event listeners you can call .unobserve
method with the same element.
Alternatively you can call the function returned from .observe()
Alternative: Add events manually
If you prefer to add & remove event listeners yourself, you can also feed events to WheelGestures to process manually: