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

.drag() on an element outside the viewport does not work #164

Open
justinbmeyer opened this issue Aug 8, 2018 · 0 comments
Open

.drag() on an element outside the viewport does not work #164

justinbmeyer opened this issue Aug 8, 2018 · 0 comments

Comments

@justinbmeyer
Copy link
Member

If you do .drag() on an element outside the viewport, it does not work. This is because https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/elementFromPoint does not work outside the viewport.

I think we should detect this and throw an error (or warning) letting people know.

It's possible we could scroll to to make this work for locations that are not negative.

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

1 participant