Skip to content

Commit

Permalink
Specify event constructing steps when coalesced/predicted events are …
Browse files Browse the repository at this point in the history
…passed using the PointerEventInit (#427)

* Fix for #223, specify event constructing steps
* linkify the reference to dictionary members

Co-authored-by: smaug <[email protected]>
  • Loading branch information
smaug---- and smaug authored Jan 5, 2022
1 parent 5ff5b4c commit ac55a60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,12 @@ <h2><code>PointerEvent</code> interface</h2>
</dd>
</dl>

<p>The <dfn>PointerEventInit</dfn> dictionary is used by the {{PointerEvent}} 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 {{PointerEvent}} 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><a data-lt="PointerEventInit.coalescedEvents">coalescedEvents</a></code> to <a>coalesced events list</a> and
clones <a>PointerEventInit</a>'s <code><a data-lt="PointerEventInit.predictedEvents">predictedEvents</a></code> to <a>predicted events list</a>.</p>


<div class="note">The <code>PointerEvent</code> interface inherits from {{MouseEvent}}, defined in [[[UIEVENTS]]].
Also note the proposed extension in [[[CSSOM-VIEW]]], which changes the various coordinate properties from <code>long</code>
Expand Down

0 comments on commit ac55a60

Please sign in to comment.