WheelEvent.deltaX

The WheelEvent.deltaX read-only property is a double representing the horizontal scroll amount in the WheelEvent.deltaMode unit.

Syntax

var dX = event.deltaX;

Example

var syntheticEvent = new WheelEvent("syntheticWheel", {"deltaX": 4, "deltaMode": 0});

console.log(syntheticEvent.deltaX);

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
The definition of 'WheelEvent.deltaX' in that specification.
Obsolete Initial definition.

Browser compatibility

BCD tables only load in the browser

See also