HTML DOM WheelEvent
The WheelEvent Object
The WheelEvent Object handles events that occur when the mouse wheel is scrolling.
Wheel Events
Event | Occurs When |
---|---|
onwheel | The mouse wheel rolls over an element |
WheelEvent Properties
Property | Returns |
---|---|
deltaX | The horizontal (x-axis) scroll amount of the wheel |
deltaY | The vertical (y-axis) scroll amount of the wheel |
deltaZ | The z-axis scroll amount of the wheel |
deltaMode | The unit of measurements (pixels, lines or pages) |
Inherited Properties and Methods
The WheelEvent inherits all the properties and methods from: