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

click event fired after dragging #2865

Closed
mtennekes opened this issue Aug 22, 2014 · 7 comments
Closed

click event fired after dragging #2865

mtennekes opened this issue Aug 22, 2014 · 7 comments
Labels
Milestone

Comments

@mtennekes
Copy link

When I run the "Interactive Choropleth Map" tutorial with the development (Leaflet 0.8-dev, from the website, not sure if it is also the latest github version), a click event is fired after a mouse drag. In other words, if I drag the map at a state, say Utah, then the map moves, but when I release the mouse button, the map is zoomed at Utah (the same that happens after a mouse click).

@mtennekes
Copy link
Author

FYI, this happens both in Firefox 31.0 and IE10...

@DeShadow
Copy link

I think your issue and mine (#2857) are very much alike. The roots of these problems may be are the same. :)

@mourner
Copy link
Member

mourner commented Aug 22, 2014

@AndreyGeonya could have been caused by your recent fix, can you take a look?

@mourner mourner added this to the 1.0-beta milestone Aug 22, 2014
@AndriiHeonia
Copy link
Contributor

@mourner Yes, I'll see it one of these days.

@AndriiHeonia
Copy link
Contributor

Yes, this bug is related with my #2619 bugfix. I improved checking in Map.js/_fireMouseEvent(), see pull-request above.

mourner added a commit that referenced this issue Aug 22, 2014
#2865, fixed bug with geometry/staticMarker click event after map drag
@AndriiHeonia
Copy link
Contributor

@mtennekes, @mourner merged my bugfix to master. Can you check it on last master and close this issue if bug doesn't reproduces?

@mtennekes
Copy link
Author

Yes, it's correct now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants