--- title: WheelEvent.deltaY slug: Web/API/WheelEvent/deltaY translation_of: Web/API/WheelEvent/deltaY ---
{{APIRef("DOM Events")}}
La propiedad de solo lectura WheelEvent.deltaY
es un double
que representa la cantidad de deslizamiento vertical en la unidad {{domxref("WheelEvent.deltaMode")}} .
var dY = event.deltaY;
var syntheticEvent = new WheelEvent("syntheticWheel", {"deltaY": 4, "deltaMode": 0}); console.log(syntheticEvent.deltaY);
Especificación | Estado | Comentario |
---|---|---|
{{SpecName('DOM3 Events','#widl-WheelEvent-deltaY','WheelEvent.deltaY')}} | {{Spec2('DOM3 Events')}} | Initial definition. |
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 31 | {{ CompatGeckoDesktop("17.0") }} | {{ CompatIE("9.0") }} [1] | 18 | 9.0 |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{ CompatVersionUnknown() }} | {{ CompatGeckoMobile("17.0") }} | {{ CompatUnknown() }} | {{ CompatVersionUnknown() }} | {{ CompatNo() }} |
[1] IE9 soporta un viejo boceto de esta propuedad cuyo valor de retorno era un long
en vez de un double
.