Merge pull request #4212 from Leaflet/non3d-updatetransform
Branch L.Renderer.updateTransform when not L.Browser.any3d, fixes #4211
This commit is contained in:
commit
ae91ffd248
@ -63,7 +63,11 @@ L.Renderer = L.Layer.extend({
|
||||
|
||||
topLeftOffset = viewHalf.multiplyBy(-scale).add(position).add(viewHalf).subtract(centerOffset);
|
||||
|
||||
L.DomUtil.setTransform(this._container, topLeftOffset, scale);
|
||||
if (L.Browser.any3d) {
|
||||
L.DomUtil.setTransform(this._container, topLeftOffset, scale);
|
||||
} else {
|
||||
L.DomUtil.setPosition(this._container, topLeftOffset);
|
||||
}
|
||||
},
|
||||
|
||||
_reset: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user