mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-03-11 11:36:12 +03:00
Fix applyConstraints with rotation.
This commit is contained in:
parent
07d66ce655
commit
14069a64e1
@ -584,7 +584,8 @@ $.Viewport.prototype = {
|
|||||||
if (bounds.x !== constrainedBounds.x ||
|
if (bounds.x !== constrainedBounds.x ||
|
||||||
bounds.y !== constrainedBounds.y ||
|
bounds.y !== constrainedBounds.y ||
|
||||||
immediately) {
|
immediately) {
|
||||||
this.fitBounds(constrainedBounds.rotate(this.getRotation()),
|
this.fitBounds(
|
||||||
|
constrainedBounds.rotate(-this.getRotation()),
|
||||||
immediately);
|
immediately);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user