WheelEvent: deltaY property - Web APIs | MDN

Value

A number.

Examples

js

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

console.log(syntheticEvent.deltaY);

Specifications

Specification
Pointer Events
# dom-wheelevent-deltay

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.