Merge pull request #1244 from danzel/fix-events
Change marker click tracking. Only care if the map has been dragged if we are not draggable.
This commit is contained in:
commit
e825b32cf8
@ -218,7 +218,7 @@ L.Marker = L.Class.extend({
|
||||
|
||||
if (wasDragged) { return; }
|
||||
|
||||
if (this._map.dragging && this._map.dragging.moved()) { return; }
|
||||
if ((!this.dragging || !this.dragging._enabled) && this._map.dragging && this._map.dragging.moved()) { return; }
|
||||
|
||||
this.fire(e.type, {
|
||||
originalEvent: e
|
||||
|
Loading…
Reference in New Issue
Block a user