mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Changelog for #1184
This commit is contained in:
parent
fc254c1c6f
commit
de2fcb1b74
@ -36,6 +36,7 @@ OPENSEADRAGON CHANGELOG
|
||||
* Fixed: the reference strip would leak memory when opening new sets of images (#1175)
|
||||
* You can now load tiles via AJAX and custom AJAX request headers (#1055)
|
||||
* Added fix for supporting weird filenames that look like JSONs (#1189)
|
||||
* Fixed: zoomTo/zoomBy ignore refPoint if immediately is true (#1184)
|
||||
|
||||
2.2.1:
|
||||
|
||||
|
@ -806,6 +806,7 @@ $.Viewport.prototype = {
|
||||
* @fires OpenSeadragon.Viewer.event:zoom
|
||||
*/
|
||||
zoomTo: function(zoom, refPoint, immediately) {
|
||||
var _this = this;
|
||||
|
||||
this.zoomPoint = refPoint instanceof $.Point &&
|
||||
!isNaN(refPoint.x) &&
|
||||
@ -814,7 +815,6 @@ $.Viewport.prototype = {
|
||||
null;
|
||||
|
||||
if (immediately) {
|
||||
var _this = this;
|
||||
this._adjustCenterSpringsForZoomPoint(function() {
|
||||
_this.zoomSpring.resetTo(zoom);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user