WheelEvent.deltaY

La propiedad de solo lectura WheelEvent.deltaY es un double que representa la cantidad de deslizamiento vertical en la unidad WheelEvent.deltaMode .

Sintaxis

var dY = event.deltaY;

Ejemplo

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

console.log(syntheticEvent.deltaY);

Especificaciones

Specification
UI Events
# dom-wheelevent-deltay

Compatibilidad con navegadores

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
deltaY

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Ver más