fix touch zoom regression
This commit is contained in:
parent
962fb03b0d
commit
c18dd9b38f
@ -24,7 +24,7 @@ L.Map.TouchZoom = L.Handler.extend({
|
||||
p2 = map.mouseEventToLayerPoint(e.touches[1]),
|
||||
viewCenter = map._getCenterLayerPoint();
|
||||
|
||||
this._startCenter = p1._add(p2)._divideBy(2);
|
||||
this._startCenter = p1.add(p2)._divideBy(2);
|
||||
this._startDist = p1.distanceTo(p2);
|
||||
|
||||
this._moved = false;
|
||||
|
Loading…
Reference in New Issue
Block a user