WheelEvent: deltaX-Eigenschaft

Die WheelEvent.deltaX schreibgeschützte Eigenschaft ist ein double, das die horizontale Scrollmenge in der WheelEvent.deltaMode-Einheit darstellt.

Wert

Eine Zahl.

Beispiele

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

console.log(syntheticEvent.deltaX);

Spezifikationen

Specification
UI Events
# dom-wheelevent-deltax

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
deltaX

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch