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:
Vladimir Agafonkin 2012-12-27 13:53:55 -08:00
commit e825b32cf8

View File

@ -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