WheelEvent.deltaZ

 

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
Document Object Model (DOM) Level 3 Events Specification
WheelEvent.deltaZ
Obsolete Initial definition.

浏览器兼容性

BCD tables only load in the browser

另见