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

BoxZoom should prevent hover events on layers #1813

Open
lotrmj opened this issue Jun 30, 2013 · 2 comments · May be fixed by #7507
Open

BoxZoom should prevent hover events on layers #1813

lotrmj opened this issue Jun 30, 2013 · 2 comments · May be fixed by #7507
Assignees

Comments

@lotrmj
Copy link

lotrmj commented Jun 30, 2013

Suppose I have some markers on the map. When I initialize boxzoom and my cursor moves over the marker, marker's mousover() event fires... Besides, boxzoom rectangle seems to be under the markers (which is not so great). I think it would be better if mouse cursor wouldn't interact with other elements on the map while drawing boxzoom rectangle. Or at least rectangle should be over other markers...

P.S. (related stuff): I used to create invisible overlay on dragstart(), which got removed on dragend() and it prevented mouse cursor from interacting with markers and so on while dragging map (and it worked flawlessly), but recently it stopped working on Firefox. Is it because of new FF 22 or did you make any core adjustments to map mouse drag event? :/
I see a lot of people overlook it and let mouse cursor interact with map while dragging map (which is usually useless, quite annoying and stupid)... Especially it's annoying when using markerclusterer: suppose you begin dragging map when cursor is near the circle and suddenly mouse cursor hovers the circle, which causes convex hull of circle points to render... not so great... user wanted just to drag a map!

@ghost ghost assigned mourner Jul 10, 2013
@mourner
Copy link
Member

mourner commented Jul 10, 2013

I see your point, will think about this. Thanks.

mourner added a commit that referenced this issue Dec 27, 2013
@mourner
Copy link
Member

mourner commented Dec 27, 2013

Fixed cursors and appearing under markers, will handle marker mousemove later...

@IvanSanchez IvanSanchez changed the title [Suggestion] Boxzoom and undesired interaction with map markers BoxZoom should prevent hover events on layers Oct 7, 2015
Malvoz added a commit to Malvoz/Leaflet that referenced this issue Mar 14, 2021
@Malvoz Malvoz removed this from the future (outdated) milestone Feb 7, 2022
@Malvoz Malvoz added the ux label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants