aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/api/wheelevent/deltay/index.html
blob: 2a061556e4e406f919fa8b973fbb10d7a7a03eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
title: WheelEvent.deltaY
slug: Web/API/WheelEvent/deltaY
translation_of: Web/API/WheelEvent/deltaY
---
<p>{{APIRef("DOM Events")}}</p>

<p>La propiedad de solo lectura <code><strong>WheelEvent.deltaY</strong></code> es un <code>double</code> que representa la cantidad de deslizamiento vertical en la unidad {{domxref("WheelEvent.deltaMode")}} .</p>

<h2 id="Sintaxis">Sintaxis</h2>

<pre class="syntaxbox">var <code><em>dY</em> = <em>event</em>.deltaY;</code></pre>

<h2 id="Ejemplo">Ejemplo</h2>

<pre class="brush: js">var syntheticEvent = new WheelEvent("syntheticWheel", {"deltaY": 4, "deltaMode": 0});

console.log(syntheticEvent.deltaY);
</pre>

<h2 id="Especificaciones">Especificaciones</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Especificación</th>
   <th scope="col">Estado</th>
   <th scope="col">Comentario</th>
  </tr>
  <tr>
   <td>{{SpecName('DOM3 Events','#widl-WheelEvent-deltaY','WheelEvent.deltaY')}}</td>
   <td>{{Spec2('DOM3 Events')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Compatibilidad_de_los_navegadores">Compatibilidad de los navegadores</h2>

{{Compat("api.WheelEvent.deltaY")}}

<h2 class="note" id="Ver_más">Ver más</h2>

<ul>
 <li>{{ event("wheel") }}</li>
 <li>{{domxref("WheelEvent")}}</li>
</ul>