Skip to content

Commit 1487446

Browse files
LanWei22AutomatedTester
authored andcommitted
Update index.html
1 parent c67730b commit 1487446

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

index.html

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7334,7 +7334,7 @@ <h3>Processing actions</h3>
73347334

73357335
<li><p>If <var>type</var> is
73367336
not "<code>key</code>", "<code>pointer</code>",
7337-
"<code>wheel</code>", or "<code>none</code>",
7337+
"<code>wheel</code>", or "<code>none</code>",
73387338
return an <a>error</a> with
73397339
<a>error code</a> <a>invalid argument</a>.
73407340

@@ -7721,11 +7721,11 @@ <h3>Processing actions</h3>
77217721
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
77227722

77237723
<li><p>
7724-
Set the <code>deltaX</code> property of <var>action</var> to <var>deltaX</var>.
7724+
Set the <code>delta x</code> property of <var>action</var> to <var>delta x</var>.
77257725

77267726
<li><p>
7727-
Let <var>deltaY</var> be the result of <a>getting the property</a>
7728-
<code>deltaY</code> from <var>action item</var>.
7727+
Let <var>delta y</var> be the result of <a>getting the property</a>
7728+
<code>delta y</code> from <var>action item</var>.
77297729

77307730
<li><p>
77317731
If <var>deltaY</var> is not <a>undefined</a> and is not an <a>Integer</a>,
@@ -7734,6 +7734,10 @@ <h3>Processing actions</h3>
77347734
<li><p>
77357735
Set the <code>deltaY</code> property of <var>action</var> to <var>deltaY</var>.
77367736

7737+
<li><p>
7738+
If <var>delta x</var> is not <a>undefined</a> and is not an <a>Integer</a>,
7739+
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
7740+
77377741
<li><p>
77387742
Return <a>success</a> with data <var>action</var>.
77397743
</ol>
@@ -7941,16 +7945,16 @@ <h3>Dispatching actions</h3>
79417945
<code>subtype</code> property, to a dispatch action algorithm.
79427946

79437947
<table class=simple>
7944-
<tr><th><var>source type</var> <th><code>subtype</code> property <th>Dispatch action algorithm
7945-
<tr><td>"<code>none</code>" <td>"<code>pause</code>" <td><a>Dispatch a pause action</a>
7946-
<tr><td>"<code>key</code>" <td>"<code>pause</code>" <td><a>Dispatch a pause action</a>
7947-
<tr><td>"<code>key</code>" <td>"<code>keyDown</code>" <td><a>Dispatch a keyDown action</a>
7948-
<tr><td>"<code>key</code>" <td>"<code>keyUp</code>" <td><a>Dispatch a keyUp action</a>
7949-
<tr><td>"<code>pointer</code>" <td>"<code>pause</code>" <td><a>Dispatch a pause action</a>
7950-
<tr><td>"<code>pointer</code>" <td>"<code>pointerDown</code>" <td><a>Dispatch a pointerDown action</a>
7951-
<tr><td>"<code>pointer</code>" <td>"<code>pointerUp</code>" <td><a>Dispatch a pointerUp action</a>
7952-
<tr><td>"<code>pointer</code>" <td>"<code>pointerMove</code> <td><a>Dispatch a pointerMove action</a>
7953-
<tr><td>"<code>pointer</code>" <td>"<code>pointerCancel</code> <td><a>Dispatch a pointerCancel action</a>
7948+
<tr><th><var>source type</var> <th><code>subtype</code> property <th>Dispatch action algorithm
7949+
<tr><td>"<code>none</code>" <td>"<code>pause</code>" <td><a>Dispatch a pause action</a>
7950+
<tr><td>"<code>key</code>" <td>"<code>pause</code>" <td><a>Dispatch a pause action</a>
7951+
<tr><td>"<code>key</code>" <td>"<code>keyDown</code>" <td><a>Dispatch a keyDown action</a>
7952+
<tr><td>"<code>key</code>" <td>"<code>keyUp</code>" <td><a>Dispatch a keyUp action</a>
7953+
<tr><td>"<code>pointer</code>" <td>"<code>pause</code>" <td><a>Dispatch a pause action</a>
7954+
<tr><td>"<code>pointer</code>" <td>"<code>pointerDown</code>" <td><a>Dispatch a pointerDown action</a>
7955+
<tr><td>"<code>pointer</code>" <td>"<code>pointerUp</code>" <td><a>Dispatch a pointerUp action</a>
7956+
<tr><td>"<code>pointer</code>" <td>"<code>pointerMove</code> <td><a>Dispatch a pointerMove action</a>
7957+
<tr><td>"<code>pointer</code>" <td>"<code>pointerCancel</code> <td><a>Dispatch a pointerCancel action</a>
79547958
<tr><td>"<code>wheel</code>" <td>"<code>pause</code>" <td><a>Dispatch a pause action</a>
79557959
<tr><td>"<code>wheel</code>" <td>"<code>scroll</code>" <td><a>Dispatch a scroll action</a>
79567960
</table>
@@ -8848,13 +8852,15 @@ <h4>Wheel actions</h4>
88488852
<var>current delta y</var>.
88498853

88508854
<p>Otherwise let <var>delta x</var> equal an approximation
8851-
to <var>duration ratio</var> &times; <var>target delta x</var>,
8855+
to <var>duration ratio</var> &times; <var>target delta x</var> -
8856+
<var>current delta x</var>,
88528857
and <var>delta y</var> equal an approximation to
8853-
<var>duration ratio</var> &times; <var>target delta y</var>.
8858+
<var>duration ratio</var> &times; <var>target delta y</var> -
8859+
<var>current delta y</var>.
88548860

8855-
<li><p>If <var>current delta x</var> is not equal to
8856-
<var>target delta x</var> or <var>current delta y</var> is not equal
8857-
to <var>target delta y</var>, run the following steps:
8861+
<li><p>If <var>delta x</var> is not equal to <var>0</var> or
8862+
<var>delta y</var> is not equal to <var>0</var>,
8863+
run the following steps:
88588864

88598865
<ol>
88608866
<li><p><a>Perform implementation-specific

0 commit comments

Comments
 (0)