Changelog for #1184

This commit is contained in:
Ian Gilman 2017-05-11 10:19:43 -07:00
parent fc254c1c6f
commit de2fcb1b74
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ OPENSEADRAGON CHANGELOG
* Fixed: the reference strip would leak memory when opening new sets of images (#1175) * 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) * You can now load tiles via AJAX and custom AJAX request headers (#1055)
* Added fix for supporting weird filenames that look like JSONs (#1189) * Added fix for supporting weird filenames that look like JSONs (#1189)
* Fixed: zoomTo/zoomBy ignore refPoint if immediately is true (#1184)
2.2.1: 2.2.1:

View File

@ -806,6 +806,7 @@ $.Viewport.prototype = {
* @fires OpenSeadragon.Viewer.event:zoom * @fires OpenSeadragon.Viewer.event:zoom
*/ */
zoomTo: function(zoom, refPoint, immediately) { zoomTo: function(zoom, refPoint, immediately) {
var _this = this;
this.zoomPoint = refPoint instanceof $.Point && this.zoomPoint = refPoint instanceof $.Point &&
!isNaN(refPoint.x) && !isNaN(refPoint.x) &&
@ -814,7 +815,6 @@ $.Viewport.prototype = {
null; null;
if (immediately) { if (immediately) {
var _this = this;
this._adjustCenterSpringsForZoomPoint(function() { this._adjustCenterSpringsForZoomPoint(function() {
_this.zoomSpring.resetTo(zoom); _this.zoomSpring.resetTo(zoom);
}); });