Skip to content

BoxZoom should prevent hover events on layers #1813

@lotrmj

Description

@lotrmj

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!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions