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.

Add TouchEvent's retargeting steps #73

Merged
merged 1 commit into from
Sep 2, 2016
Merged

Conversation

hayatoito
Copy link
Member

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.

@hayatoito
Copy link
Member Author

@RByers , could you kindly review the PR?

@hayatoito
Copy link
Member Author

Ah, I have found that this change is wrong and should be updated.
We have to preserve touch's original target value somewhere so that retargeting steps can use the original value because retargeting steps can be called multiple times in one event dispatch.
Let me update tomorrow.

@hayatoito
Copy link
Member Author

I have updated the PR. PTAL.

@RByers
Copy link
Contributor

RByers commented Aug 30, 2016

Sorry for the delay! I have to run now, but I will look tomorrow.

@@ -1153,6 +1190,9 @@ <h3 id="event-touchcancel">The <dfn class="event"><code>touchcancel</code></dfn>
<li>
<a href="https://github.com/w3c/touch-events/pull/72">Note about avoiding conditional "touch OR mouse/keyboard" event handling</a>
</li>
<li>
Added TouchEvent's retargeting steps.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add a link to the pull request please

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Done.

@RByers
Copy link
Contributor

RByers commented Sep 2, 2016

This makes sense and ended up being much simpler than I expected given the code I've seen in blink for this . LGTM with a tiny nit.

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.
@hayatoito
Copy link
Member Author

Thanks for the review. I have added a link to the pull req in the change.

@RByers RByers merged commit eeed53b into w3c:gh-pages Sep 2, 2016
@RByers
Copy link
Contributor

RByers commented Sep 2, 2016

Thank you! And especially thanks for updating the tests!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.