mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-18 07:43:13 +03:00
zoom methods calls removed
This commit is contained in:
parent
fba70355cd
commit
0fe5dad769
@ -741,18 +741,9 @@ $.Viewport.prototype = {
|
|||||||
*/
|
*/
|
||||||
// Added to improve constrained panning
|
// Added to improve constrained panning
|
||||||
getConstrainedBounds: function( immediately ) {
|
getConstrainedBounds: function( immediately ) {
|
||||||
var actualZoom = this.getZoom(),
|
var bounds,
|
||||||
constrainedZoom = Math.max(
|
|
||||||
Math.min( actualZoom, this.getMaxZoom() ),
|
|
||||||
this.getMinZoom()
|
|
||||||
),
|
|
||||||
bounds,
|
|
||||||
constrainedBounds;
|
constrainedBounds;
|
||||||
|
|
||||||
if ( actualZoom != constrainedZoom ) {
|
|
||||||
this.zoomTo( constrainedZoom, this.zoomPoint, immediately );
|
|
||||||
}
|
|
||||||
|
|
||||||
bounds = this.getBounds();
|
bounds = this.getBounds();
|
||||||
|
|
||||||
constrainedBounds = this._applyBoundaryConstraints( bounds, immediately );
|
constrainedBounds = this._applyBoundaryConstraints( bounds, immediately );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user