update build
This commit is contained in:
parent
291f3515bf
commit
48f99ab2f8
8
dist/leaflet-src.js
vendored
8
dist/leaflet-src.js
vendored
@ -4924,8 +4924,8 @@ L.Map.TouchZoom = L.Handler.extend({
|
||||
|
||||
if (!e.touches || e.touches.length !== 2 || map._animatingZoom || this._zooming) { return; }
|
||||
|
||||
var p1 = map.mouseEventToContainerPoint(e.touches[0]),
|
||||
p2 = map.mouseEventToContainerPoint(e.touches[1]),
|
||||
var p1 = map.mouseEventToLayerPoint(e.touches[0]),
|
||||
p2 = map.mouseEventToLayerPoint(e.touches[1]),
|
||||
viewCenter = map.containerPointToLayerPoint(map.getSize().divideBy(2));
|
||||
|
||||
this._startCenter = p1.add(p2).divideBy(2, true);
|
||||
@ -4948,8 +4948,8 @@ L.Map.TouchZoom = L.Handler.extend({
|
||||
|
||||
var map = this._map;
|
||||
|
||||
var p1 = map.mouseEventToContainerPoint(e.touches[0]),
|
||||
p2 = map.mouseEventToContainerPoint(e.touches[1]);
|
||||
var p1 = map.mouseEventToLayerPoint(e.touches[0]),
|
||||
p2 = map.mouseEventToLayerPoint(e.touches[1]);
|
||||
|
||||
this._scale = p1.distanceTo(p2) / this._startDist;
|
||||
this._delta = p1.add(p2).divideBy(2, true).subtract(this._startCenter);
|
||||
|
2
dist/leaflet.js
vendored
2
dist/leaflet.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user