mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
small cleanup
This commit is contained in:
parent
256514bca6
commit
66b4b29424
@ -719,8 +719,6 @@ $.Viewport.prototype = {
|
|||||||
this.zoomTo(currentZoom, null, true);
|
this.zoomTo(currentZoom, null, true);
|
||||||
|
|
||||||
this.fitBounds(constrainedBounds);
|
this.fitBounds(constrainedBounds);
|
||||||
|
|
||||||
// this.zoomTo(newZoom, referencePoint, immediately);
|
|
||||||
} else {
|
} else {
|
||||||
var rotatedNewBounds = newBounds.rotate(-this.getRotation());
|
var rotatedNewBounds = newBounds.rotate(-this.getRotation());
|
||||||
var referencePoint = rotatedNewBounds.getTopLeft().times(newZoom)
|
var referencePoint = rotatedNewBounds.getTopLeft().times(newZoom)
|
||||||
|
Loading…
Reference in New Issue
Block a user