wheel event
The event fired when the user turns a mouse wheel or scrolls with a trackpad.
In more detail
Its deltaX and deltaY properties report how far the user scrolled. Like touch events, a non-passive wheel listener can block scrolling until it has run.
Related terms
- passive event listener — An event listener registered with { passive: true }, which promises never to call preventDefault, so the browser can scroll immediately without waiting for it.
- touch events — Events such as touchstart and touchmove fired when fingers touch and move on a touchscreen.
Taught in
- Passive Listeners, Scroll Performance And Touch Interactions — Frontend Architecture & Web Platform