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

[0.9] Gesture event throws exception when dragged outside document #1574

Closed
Sleeckx opened this issue May 20, 2015 · 0 comments · Fixed by #1579
Closed

[0.9] Gesture event throws exception when dragged outside document #1574

Sleeckx opened this issue May 20, 2015 · 0 comments · Fixed by #1579
Assignees

Comments

@Sleeckx
Copy link

Sleeckx commented May 20, 2015

The following line throws an exception when you drag the element outside the document:
https://github.com/Polymer/polymer/blob/master/src/standard/gestures.html#L103
_Uncaught TypeError: Cannot read property 'shadowRoot' of null_

While doing so may not serve any practical use, a user might do this by accident and the errors don't look nice in the console.

dfreedm added a commit that referenced this issue May 20, 2015
Also avoid cases where shadowRoot.elementFromPoint returns null
Fixes #1574 [0.9] Gesture event throws exception when dragged outside document
dfreedm added a commit that referenced this issue May 20, 2015
Fixes #1574 [0.9] Gesture event throws exception when dragged outside document

Move targetfinding to Gestures object for testing
Add tests
dfreedm added a commit that referenced this issue May 20, 2015
Fixes #1574 [0.9] Gesture event throws exception when dragged outside document

Move targetfinding to Gestures object for testing
Add tests
dfreedm added a commit that referenced this issue May 21, 2015
Fixes #1574 [0.9] Gesture event throws exception when dragged outside document

Move targetfinding to Gestures object for testing
Add tests
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

Successfully merging a pull request may close this issue.

3 participants