WheelEvent.deltaY

 

WheelEvent.deltaY 只读属性是一个 double 类型值,声明垂直滚动量以WheelEvent.deltaMode 为单位。

语法

var dY = event.deltaY;

例子

var syntheticEvent = new WheelEvent("syntheticWheel", {"deltaY": 4, "deltaMode": 0});

console.log(syntheticEvent.deltaY);

规范

Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
WheelEvent.deltaY
Obsolete Initial definition.

浏览器兼容性

BCD tables only load in the browser

另见