mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-16 14:53:14 +03:00
Take zoom constraint into account within _fitBounds when constraints = true and immediately = false
This commit is contained in:
parent
ca5cc84988
commit
16fc72d8fb
@ -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…
x
Reference in New Issue
Block a user