mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Merge pull request #2293 from pearcetm/zoom-constraints-fix
Take zoom constraint into account within _fitBounds
This commit is contained in:
commit
cbb0a009e7
@ -711,6 +711,8 @@ $.Viewport.prototype = {
|
|||||||
|
|
||||||
if(constraints){
|
if(constraints){
|
||||||
this.panTo(center, false);
|
this.panTo(center, false);
|
||||||
|
|
||||||
|
newZoom = this._applyZoomConstraints(newZoom);
|
||||||
this.zoomTo(newZoom, null, false);
|
this.zoomTo(newZoom, null, false);
|
||||||
|
|
||||||
var constrainedBounds = this.getConstrainedBounds();
|
var constrainedBounds = this.getConstrainedBounds();
|
||||||
|
Loading…
Reference in New Issue
Block a user