Fix jittery marker movement on pinch-zoom (removed position rounding)
This commit is contained in:
parent
183f36c1a9
commit
55c35828a8
@ -32,6 +32,7 @@ Leaflet 0.4 contains several API improvements that allow simpler, jQuery-like sy
|
||||
* Improved zooming so that you don't get a blank map when you zoom in or out twice quickly (by [@danzel](https://github.com/danzel)). [#7](https://github.com/CloudMade/Leaflet/issues/7) [#729](https://github.com/CloudMade/Leaflet/pull/729)
|
||||
* Drag-panning now works even when there are markers in the starting point (helps on maps with lots of markers). [#506](https://github.com/CloudMade/Leaflet/issues/506)
|
||||
* Improved panning performance even more (there are no wasted frames now).
|
||||
* Improved pinch-zoom performance in mobile Chrome and Firefox.
|
||||
* Improved map performance on window resize.
|
||||
* Replaced box-shadow with border on controls for mobile devices to improve performance.
|
||||
* Slightly improved default popup styling.
|
||||
|
@ -206,7 +206,7 @@ L.Popup = L.Class.extend({
|
||||
},
|
||||
|
||||
_zoomAnimation: function (opt) {
|
||||
var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center)._round();
|
||||
var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center);
|
||||
|
||||
L.DomUtil.setPosition(this._container, pos);
|
||||
},
|
||||
|
@ -623,7 +623,7 @@ L.Map = L.Class.extend({
|
||||
|
||||
_latLngToNewLayerPoint: function (latlng, newZoom, newCenter) {
|
||||
var topLeft = this._getNewTopLeftPoint(newCenter, newZoom).add(this._getMapPanePos());
|
||||
return this.project(latlng, newZoom)._subtract(topLeft)._round();
|
||||
return this.project(latlng, newZoom)._subtract(topLeft);
|
||||
},
|
||||
|
||||
_getCenterLayerPoint: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user