WheelEvent.deltaZ
The WheelEvent.deltaZ read-only property is a
double representing the scroll amount along the z-axis, in the
WheelEvent.deltaMode unit.
Syntax
var dZ = event.deltaZ;
Example
var syntheticEvent = new WheelEvent("syntheticWheel", {"deltaZ": 4, "deltaMode": 0});
console.log(syntheticEvent.deltaZ);
Specifications
| Specification |
|---|
| UI Events # dom-wheelevent-deltaz |
Browser compatibility
BCD tables only load in the browser