Merge pull request #1952 from fastrde/fixNoShiftClickAfterDrag

fixes shift clicking Issue described in (Issue #1950)
This commit is contained in:
Vladimir Agafonkin 2013-08-08 06:51:12 -07:00
commit 198d6803a0

View File

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