Skip to content

Commit

Permalink
Clarify pointercancel coordinates (#473)
Browse files Browse the repository at this point in the history
Rework sentence for better clarity and add coordinates to the list of properties
  • Loading branch information
mustaqahmed authored Jul 4, 2023
1 parent 300cca0 commit 90c71b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ <h3>The <dfn data-dfn-for="GlobalEventHandlers" data-event-type="event">pointeru
<section>
<h3>The <dfn data-dfn-for="GlobalEventHandlers" data-dfn-type="event">pointercancel</dfn> event</h3>
<p>The user agent MUST <a>fire a pointer event</a> named {{GlobalEventHandlers/pointercancel}} when it detects a scenario to <a>suppress a pointer event stream</a>.</p>
<p>The value of most properties (<code>pointerId</code>, <code>width</code>, <code>height</code>, <code>pressure</code>, <code>tangentialPressure</code>, <code>tiltX</code>, <code>tiltY</code>, <code>twist</code>, <code>altitudeAngle</code>, <code>azimuthAngle</code>, <code>pointerType</code>, <code>isPrimary</code>) of the {{GlobalEventHandlers/pointercancel}} event MUST match the values of the last pointer event that preceded cancellation. However, the <code>coalescedEvents</code> and <code>predictedEvents</code> lists of the {{GlobalEventHandlers/pointercancel}} event MUST be empty, and the event's {{Event/cancelable}} attribute MUST be false.</p>
<p>The values of the following properties of the {{GlobalEventHandlers/pointercancel}} event MUST match the values of the last dispatched pointer event with the same <code>pointerId</code>: <code>width</code>, <code>height</code>, <code>pressure</code>, <code>tangentialPressure</code>, <code>tiltX</code>, <code>tiltY</code>, <code>twist</code>, <code>altitudeAngle</code>, <code>azimuthAngle</code>, <code>pointerType</code>, <code>isPrimary</code>, and the coordinates inherited from [[UIEVENTS]]. The <code>coalescedEvents</code> and <code>predictedEvents</code> lists in the {{GlobalEventHandlers/pointercancel}} event MUST be empty, and the event's {{Event/cancelable}} attribute MUST be false.</p>
</section>
<section>
<h3>The <dfn data-dfn-for="GlobalEventHandlers" data-dfn-type="event">pointerout</dfn> event</h3>
Expand Down

0 comments on commit 90c71b2

Please sign in to comment.