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 |
|---|
| UI Events # dom-wheelevent-deltax |
Browser compatibility
BCD tables only load in the browser