Skip to content

Commit

Permalink
Fix for w3c#223, specify event constructing steps
Browse files Browse the repository at this point in the history
  • Loading branch information
smaug committed Dec 22, 2021
1 parent ea15c00 commit b59f658
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,11 @@ <h2><code>PointerEvent</code> Interface</h2>
</dd>
</dl>

<p>The <dfn>PointerEventInit</dfn> dictionary is used by the <dfn>PointerEvent</dfn> interface's constructor to provide a mechanism by which to construct untrusted (synthetic) pointer events. It inherits from the {{MouseEventInit}} dictionary defined in [[UIEVENTS]]. The [=event constructing steps=] are defined in the [[[DOM]]]. See the <a href="#examples" title="examples">examples</a> for sample code demonstrating how to fire an untrusted pointer event.</p>
<p>The <dfn>PointerEventInit</dfn> dictionary is used by the <dfn>PointerEvent</dfn> interface's constructor to provide a mechanism by which to construct untrusted (synthetic) pointer events. It inherits from the {{MouseEventInit}} dictionary defined in [[UIEVENTS]]. See the <a href="#examples" title="examples">examples</a> for sample code demonstrating how to fire an untrusted pointer event.</p>

<p>The [=event constructing steps=] for <dfn>PointerEvent</dfn>
clones <a>PointerEventInit</a>'s <code>coalescedEvents</code> to <a>coalesced event list</a> and
clones <a>PointerEventInit</a>'s <code>predictedEvents</code> to <a>predicted event list</a>.</p>

<div class="note">
<p>Pointer Events include two complementary sets of attributes to express the orientation of a
Expand Down Expand Up @@ -1061,7 +1065,8 @@ <h2><dfn>Predicted events</dfn></h2>
<p>A <a>PointerEvent</a> has an associated <dfn>predicted event list</dfn> (a list of zero or more
<code>PointerEvent</code>s). If this event is a <code>pointermove</code> event, it is a sequence of
<code>PointerEvent</code>s that the user agent predicts will follow the events in the
<a>coalesced event list</a> in the future; otherwise it is an empty list.</p>
<a>coalesced event list</a> in the future; otherwise it is an empty list.
Untrusted events have their predicted event list initialized to the value passed to the constructor.</p>
<div class="note">
<p>While <code>pointerrawmove</code> events may have a non-empty <a>coalesced event list</a>,
their <a>predicted event list</a> will, for performance reasons, usually be an empty list.</p>
Expand Down

0 comments on commit b59f658

Please sign in to comment.