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 GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
deltaX |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.