-
Notifications
You must be signed in to change notification settings - Fork 276
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
click event bubbles down on panend #293
Comments
Have you found a solution? |
hello! I have the same issue! Any workaround? |
I use the next solution:
In the block, where you processing a click you should calculate new values of the position:
Then just compair them:
|
The bug is in the demo: https://anvaka.github.io/panzoom/demo/index.html I agree, this should be taken care of by panzoom itself. |
When I'm finished dragging, if my mouse is over an element with a click event listener, the event listener is fired. I would like it to only fire if I'm not actually dragging.
How an I do this?
I tried
but this is actually the opposite of what is needed, as it still bubbles down and also no longer ends panning.
I'd like to avoid forking this lib if possible
The text was updated successfully, but these errors were encountered: