HTML DOM WheelEvent

WheelEvent Object

An event that occurs when the mouse wheel scrolls, belonging to the WheelEvent object.

Wheel Event Properties and Methods

Property/Method Description
deltaX Returns the horizontal scroll amount of the mouse wheel (x-axis).
deltaY Returns the vertical scroll amount of the mouse wheel (y-axis).
deltaZ Returns the Z-axis scroll amount of the mouse wheel.
deltaMode Returns a number representing the unit of measure (pixels, lines, or pages) of the increment value.

Inherited Properties and Methods

WheelEvent inherits all properties and methods from the following objects:

MouseEvent

UiEvent

Event Object

Event Type

These event types belong to the WheelEvent object:

Event Description
onwheel This event occurs when the mouse wheel rolls up or down over an element.