Skip to content

Commit

Permalink
Specify wheel event groups
Browse files Browse the repository at this point in the history
Specify the behavior of wheel event groups.
  • Loading branch information
dlrobertson committed Dec 4, 2023
1 parent e47b95e commit a02da34
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion sections/event-types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2068,6 +2068,18 @@ myDiv.addEventListener("auxclick", function(e) {
deltaY value respectively).
</p>

A <a>user agent</a> MUST create a <a>wheel event transaction</a> when the first wheel event
is fired, so that all subsequent wheel events within a implementation-specific amount of
time can be targetted at the same element. A <dfn>wheel event transaction</dfn> is series of
wheel events that are associated with a single user gesture. The
<a>wheel event transaction</a> MUST have an associated event target that is the
<a>topmost event target</a> at the time the first wheel event occurs in the group.

<p class="example">
If a series of wheel events targetted in a scrollable element start above a child element,
later events for the same user gesture may occur over the child element.
</p>

<h4 id="interface-wheelevent">Interface WheelEvent</h4>

<p class="intro-dom">Introduced in this specification</p>
Expand Down Expand Up @@ -2229,7 +2241,8 @@ myDiv.addEventListener("auxclick", function(e) {
+| Composed | Yes |
+| Default action | Scroll (or zoom) the document |
+| Context<br/> | <ul> |
| (trusted events) | <li>{{Event}}.{{Event/target}} : <a>topmost event target</a></li> |
| (trusted events) | <li>{{Event}}.{{Event/target}} : element target for the current |
| | <a>wheel event transaction</a> |
| | <li>{{UIEvent}}.{{UIEvent/view}} : <a><code>Window</code></a></li> |
| | <li>{{UIEvent}}.{{UIEvent/detail}} : <code>0</code></li> |
| | <li>{{MouseEvent}}.{{MouseEvent/screenX}} : if the wheel is associated with a |
Expand Down

0 comments on commit a02da34

Please sign in to comment.