Merge pull request #2111 from danzel/fix-2103

Remove leftover code from the draggable/tap cleanup. Fixes #2103
This commit is contained in:
Vladimir Agafonkin 2013-10-21 01:31:52 -07:00
commit 6f681b20db

View File

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