Skip to content

map.on('click',onClick) is also fired when zoombox #1884

@pere

Description

@pere

Tested in Firefox and Chrome in MacOS.
Leaflet version 0.5 (but 0.6 probably also, not tested but someone confirmed me)

Attaching an event like map.on('click',onClick) fires also when user draws a zooming bounding box (shift+draw a rectangle).

Comparing map.on(mousedown) latlng and on click is hacking but works.

You can check http://stackoverflow.com/questions/17726109/map-onclick-onclick-is-also-fired-when-zoombox

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions