Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PointerEvents registration fails in the presence of ShadowDOMPolyfill in some cases #111

Closed
sorvell opened this issue Apr 22, 2013 · 1 comment
Assignees

Comments

@sorvell
Copy link
Contributor

sorvell commented Apr 22, 2013

Under ShadowDOMPolyfill, the back button in projects/youtube does not function when on-tap is used to trigger it.

PointerEvents monitors dom via mutation observers. It installs listeners on document and on each shadowDOM toolkit creates.

For the g-toolbar containing the back button, PointerEvents sees the node being removed from dom and unsets its touch-action. This makes the tap event non-functional. This is unexpected since the g-toolbar is not removed from dom.

A quick test shows that if we avoid installing the PointerEvents mutation observer on shadowRoots, the problem goes away. This is unexpected since the node is not removed from the shadowRoot.

@ghost ghost assigned dfreedm Apr 22, 2013
@dfreedm
Copy link
Member

dfreedm commented Apr 23, 2013

Addressed in toolkitchen/PointerEvents#56

@dfreedm dfreedm closed this as completed May 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants