wheel event fires when the user rotates a wheel button on a pointing device (typically a mouse).
This event replaces the non-standard deprecated
|Event handler property||
Note: Don't confuse the
wheel event with the
scroll event. The default action of a
wheel event is implementation-specific, and doesn't necessarily dispatch a
scroll event. Even when it does, the
delta* values in the
wheel event don't necessarily reflect the content's scrolling direction. Therefore, do not rely on the
delta* properties to get the scrolling direction. Instead, detect value changes of
scrollTop in the
|Document Object Model (DOM) Level 3 Events Specification
The definition of 'wheel' in that specification.
No compatibility data found. Please contribute data for "api.Element.wheel_event" (depth: 1) to the MDN compatibility data repository.