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
var syntheticEvent = new WheelEvent("syntheticWheel", {"deltaY": 4, "deltaMode": 0}); console.log(syntheticEvent.deltaY);
Especificaciones
Especificación | Estado | Comentario |
---|---|---|
Document Object Model (DOM) Level 3 Events Specification La definición de 'WheelEvent.deltaY' en esta especificación. |
Obsolete | Initial definition. |
Compatibilidad de los navegadores
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 31 | 17.0 (17.0) | 9.0 [1] | 18 | 9.0 |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | (Yes) | 17.0 (17.0) | ? | (Yes) | Sin soporte |
[1] IE9 soporta un viejo boceto de esta propuedad cuyo valor de retorno era un long
en vez de un double
.