WheelEvent: deltaY property
The WheelEvent.deltaY
read-only property is a
double
representing the vertical scroll amount in the
WheelEvent.deltaMode
unit.
Value
A number.
Examples
js
const syntheticEvent = new WheelEvent("syntheticWheel", {
deltaY: 4,
deltaMode: 0,
});
console.log(syntheticEvent.deltaY);
Specifications
Specification |
---|
UI Events # dom-wheelevent-deltay |
Browser compatibility
BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.