This repository was archived by the owner on Jul 9, 2024. It is now read-only.
File tree 1 file changed +26
-0
lines changed
Filter options
1 file changed +26
-0
lines changed
Original file line number Diff line number Diff line change @@ -504,6 +504,29 @@ <h2><a><code>TouchEvent</code></a> Interface</h2>
504
504
< a > < code > TouchEvent</ code > </ a > constructor.
505
505
</ p >
506
506
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
+
507
530
< section class ="informative ">
508
531
< h2 > TouchEvent Implementer's Note</ h2 >
509
532
< div class ="note ">
@@ -1153,6 +1176,9 @@ <h2>Changes Since Last Publication</h2>
1153
1176
< li >
1154
1177
< a href ="https://github.com/w3c/touch-events/pull/72 "> Note about avoiding conditional "touch OR mouse/keyboard" event handling</ a >
1155
1178
</ li >
1179
+ < li >
1180
+ Added TouchEvent's retargeting steps.
1181
+ </ li >
1156
1182
</ ul >
1157
1183
</ section >
1158
1184
You can’t perform that action at this time.
0 commit comments