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


var dX = event.deltaX;


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



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

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support31 Yes179118 Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes17 Yes ? ?

1. IE9 supports an old draft of the spec where this value was a long instead of a double.

See also

Document Tags and Contributors

Contributors to this page: fscholz, libbymc, teoli
Last updated by: fscholz,