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

Pan doesn't emit events when I drag outside of the window #52

Open
hackhat opened this issue Aug 24, 2018 · 2 comments
Open

Pan doesn't emit events when I drag outside of the window #52

hackhat opened this issue Aug 24, 2018 · 2 comments

Comments

@hackhat
Copy link

hackhat commented Aug 24, 2018

Let's say I start dragging something inside the window, but then I move my mouse outside the window it stops the pan event.

Hammerjs for example still emits new events even if the mouse is outside of the window.

@mvanderkamp
Copy link
Contributor

Interesting. I'm still new to the codebase here, but this seems like an oversight. This will be because hammerjs adds some event listeners to the window. It might be smart to do something similar here. My instinct was to say that you could work around this by using the window as your Region, but that won't work because ZingTouch currently assumes that the Region will be an Element, so trying it will throw exceptions. This should be fixed.

@hackhat
Copy link
Author

hackhat commented Aug 24, 2018

yeah, thanks

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