WheelEvent.deltaX

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

Value

A number.

Examples

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

console.log(syntheticEvent.deltaX);

Specifications

Specification
UI Events
# dom-wheelevent-deltax

Browser compatibility

BCD tables only load in the browser

See also