Merge pull request #1952 from fastrde/fixNoShiftClickAfterDrag
fixes shift clicking Issue described in (Issue #1950)
This commit is contained in:
commit
198d6803a0
@ -46,6 +46,8 @@ L.Draggable = L.Class.extend({
|
||||
},
|
||||
|
||||
_onDown: function (e) {
|
||||
this._moved = false;
|
||||
|
||||
if (e.shiftKey || ((e.which !== 1) && (e.button !== 1) && !e.touches)) { return; }
|
||||
|
||||
L.DomEvent
|
||||
@ -64,8 +66,6 @@ L.Draggable = L.Class.extend({
|
||||
L.DomUtil.addClass(el, 'leaflet-active');
|
||||
}
|
||||
|
||||
this._moved = false;
|
||||
|
||||
if (this._moving) { return; }
|
||||
|
||||
this._startPoint = new L.Point(first.clientX, first.clientY);
|
||||
|
Loading…
Reference in New Issue
Block a user