WheelEvent.deltaZ
La propriété en lecture seule WheelEvent.deltaZ
est un double
représentant la quantité de défilement le long de l'axe z, dans l'unité WheelEvent.deltaMode
.
Syntaxe
js
var dZ = event.deltaZ;
Exemple
js
var syntheticEvent = new WheelEvent("syntheticWheel", {
deltaZ: 4,
deltaMode: 0,
});
console.log(syntheticEvent.deltaZ);
Spécifications
Specification |
---|
UI Events # dom-wheelevent-deltaz |
Compatibilité des navigateurs
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
deltaZ |
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.
Voir aussi
- L'évènement
wheel
WheelEvent