fixed non-rounded panBy, closes #1085
This commit is contained in:
parent
93091704f7
commit
10c0a63b3d
@ -53,6 +53,7 @@ An in-progress version being developed on the master branch.
|
||||
* Fixed a bug where shift-clicking on a map would zoom it to the max zoom level.
|
||||
* Fixed a glitch with zooming in while panning animation is running.
|
||||
* Fixed a glitch with dragging the map while zoom animation is running.
|
||||
* Fixed a bug where `panBy` wouldn't round the offset values (so it was possible to make the map blurry with it). [#1085](https://github.com/CloudMade/Leaflet/issues/1085)
|
||||
|
||||
#### API bugfixes
|
||||
|
||||
|
@ -49,7 +49,7 @@ L.Map.include({
|
||||
|
||||
L.DomUtil.addClass(this._mapPane, 'leaflet-pan-anim');
|
||||
|
||||
var newPos = L.DomUtil.getPosition(this._mapPane).subtract(offset);
|
||||
var newPos = L.DomUtil.getPosition(this._mapPane).subtract(offset)._round();
|
||||
this._panAnim.run(this._mapPane, newPos, duration || 0.25, easeLinearity);
|
||||
|
||||
return this;
|
||||
|
Loading…
Reference in New Issue
Block a user