WheelEvent:deltaY 属性
io error: No such file or directory (os error 2) (/home/runner/work/yari/yari/mdn/translated-content/files/zh-cn/web/api/ui_events/index.md)
WheelEvent.deltaY
只读属性是一个表示以 WheelEvent.deltaMode
为单位的垂直滚动量的 double
值。
值
数字。
示例
js
const syntheticEvent = new WheelEvent("syntheticWheel", {
deltaY: 4,
deltaMode: 0,
});
console.log(syntheticEvent.deltaY);
规范
Specification |
---|
UI Events # dom-wheelevent-deltay |
浏览器兼容性
BCD tables only load in the browser