fix touch zoom regression

This commit is contained in:
Vladimir Agafonkin 2012-08-14 10:50:49 +03:00
parent 962fb03b0d
commit c18dd9b38f

View File

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