HTML DOM WheelEvent

❮ DOM Events ❮ Event Objects


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:

The MouseEvent

The UiEvent

The Event Object


❮ DOM Events ❮ Event Objects

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.