Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit 5d5ed5e

Browse filesBrowse files
committed
Add TouchEvent's retargeting steps
Upstream Shadow DOM's TouchEvent's retargeting to TouchEvent specification. http://w3c.github.io/webcomponents/spec/shadow/#touch-events-retargeting DOM Standard side issue is here: whatwg/dom#286. DOM Standard already defines a necessary hook, https://dom.spec.whatwg.org/#event-retargeting-steps. The test for TouchEvent retargeting was commited at web-platform-tests/wpt#3425.
1 parent 02e3731 commit 5d5ed5e
Copy full SHA for 5d5ed5e

File tree

1 file changed

+26
-0
lines changed
Filter options

1 file changed

+26
-0
lines changed

‎index.html

Copy file name to clipboardExpand all lines: index.html
+26
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,29 @@ <h2><a><code>TouchEvent</code></a> Interface</h2>
504504
<a><code>TouchEvent</code></a> constructor.
505505
</p>
506506

507+
<p>
508+
<code>TouchEvent</code>'s <a href="https://dom.spec.whatwg.org/#event-retargeting-steps">retargeting steps</a>
509+
[[!WHATWG-DOM]], given a <var>touchEvent</var>, must run these steps:
510+
</p>
511+
<ol>
512+
<li>
513+
<p>
514+
For each <a><code>Touch</code></a> <var>touch</var> in <var>touchEvent</var>'s <code>touches</code>,
515+
<code>targetTouches</code>, and <code>changedTouches</code> members:
516+
</p>
517+
<ol>
518+
<li>
519+
Let <var>unadjustedTarget</var> be <var>touch</var>'s <code>target</code>.
520+
</li>
521+
<li>
522+
Set <var>touch</var>'s <code>target</code> to the result of invoking
523+
<a href="https://dom.spec.whatwg.org/#retarget">retargeting</a> [[!WHATWG-DOM]] <var>unadjustedTarget</var>
524+
againt <var>touchEvent</var>'s <code>target</code>.
525+
</li>
526+
</ol>
527+
</li>
528+
</ol>
529+
507530
<section class="informative">
508531
<h2>TouchEvent Implementer's Note</h2>
509532
<div class="note">
@@ -1153,6 +1176,9 @@ <h2>Changes Since Last Publication</h2>
11531176
<li>
11541177
<a href="https://github.com/w3c/touch-events/pull/72">Note about avoiding conditional "touch OR mouse/keyboard" event handling</a>
11551178
</li>
1179+
<li>
1180+
Added TouchEvent's retargeting steps.
1181+
</li>
11561182
</ul>
11571183
</section>
11581184

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.