Merge pull request #2111 from danzel/fix-2103
Remove leftover code from the draggable/tap cleanup. Fixes #2103
This commit is contained in:
commit
6f681b20db
@ -59,16 +59,10 @@ L.Draggable = L.Class.extend({
|
|||||||
L.DomUtil.disableImageDrag();
|
L.DomUtil.disableImageDrag();
|
||||||
L.DomUtil.disableTextSelection();
|
L.DomUtil.disableTextSelection();
|
||||||
|
|
||||||
var first = e.touches ? e.touches[0] : e,
|
|
||||||
el = first.target;
|
|
||||||
|
|
||||||
// if touching a link, highlight it
|
|
||||||
if (L.Browser.touch && el.tagName && el.tagName.toLowerCase() === 'a') {
|
|
||||||
L.DomUtil.addClass(el, 'leaflet-active');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this._moving) { return; }
|
if (this._moving) { return; }
|
||||||
|
|
||||||
|
var first = e.touches ? e.touches[0] : e;
|
||||||
|
|
||||||
this._startPoint = new L.Point(first.clientX, first.clientY);
|
this._startPoint = new L.Point(first.clientX, first.clientY);
|
||||||
this._startPos = this._newPos = L.DomUtil.getPosition(this._element);
|
this._startPos = this._newPos = L.DomUtil.getPosition(this._element);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user