Skip to content

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

Description

@sorvell

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.

Activity

  1. ghost assigned on Apr 22, 2013
  2. dfreedm commented on Apr 23, 2013

    @dfreedm
    Member

    Addressed in toolkitchen/PointerEvents#56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions