fix iOS vectir zoom anim regression, close #1259
This commit is contained in:
parent
1677a7d40d
commit
80d0da1bdf
@ -165,9 +165,9 @@ L.Map.include({
|
|||||||
|
|
||||||
_animatePathZoom: function (e) {
|
_animatePathZoom: function (e) {
|
||||||
var scale = this.getZoomScale(e.zoom),
|
var scale = this.getZoomScale(e.zoom),
|
||||||
offset = this._getCenterOffset(e.center)._multiplyBy(-scale);
|
offset = this._getCenterOffset(e.center)._multiplyBy(-scale)._add(this._pathViewport.min);
|
||||||
|
|
||||||
this._pathRoot.style[L.DomUtil.TRANSFORM] +=
|
this._pathRoot.style[L.DomUtil.TRANSFORM] =
|
||||||
L.DomUtil.getTranslateString(offset) + ' scale(' + scale + ') ';
|
L.DomUtil.getTranslateString(offset) + ' scale(' + scale + ') ';
|
||||||
|
|
||||||
this._pathZooming = true;
|
this._pathZooming = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user