--- title: WheelEvent.deltaZ slug: Web/API/WheelEvent/deltaZ translation_of: Web/API/WheelEvent/deltaZ ---
{{APIRef("DOM Events")}}
WheelEvent.deltaZ
只读属性是一个 double
类型值, 声明 Z 轴滚动量以WheelEvent.deltaMode
为单位.
var dZ = event.deltaZ;
var syntheticEvent = new WheelEvent("syntheticWheel", {"deltaZ": 4, "deltaMode": 0}); console.log(syntheticEvent.deltaZ);
Specification | Status | Comment |
---|---|---|
{{SpecName('DOM3 Events','#widl-WheelEvent-deltaZ','WheelEvent.deltaZ')}} | {{Spec2('DOM3 Events')}} | Initial definition. |