HTML DOM WheelEvent
The WheelEvent Object
Events that occur when the mouse wheel is scrolling, belongs to the WheelEvent Object.
WheelEvent Properties and Methods
| Property/Method | Description |
|---|---|
| deltaX | Returns the horizontal scroll amount of a mouse wheel (x-axis) |
| deltaY | Returns the vertical scroll amount of a mouse wheel (y-axis) |
| deltaZ | Returns the scroll amount of a mouse wheel for the z-axis |
| deltaMode | Returns a number that represents the unit of measurements for delta values (pixels, lines or pages) |
Inherited Properties and Methods
The WheelEvent inherits all the properties and methods from:
Event Types
These event types belongs to the WheelEvent Object:
| Event | Description |
|---|---|
| onwheel | The event occurs when the mouse wheel rolls up or down over an element |