mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-19 00:03:13 +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 ||
|
||||
bounds.y !== constrainedBounds.y ||
|
||||
immediately) {
|
||||
this.fitBounds(constrainedBounds.rotate(this.getRotation()),
|
||||
this.fitBounds(
|
||||
constrainedBounds.rotate(-this.getRotation()),
|
||||
immediately);
|
||||
}
|
||||
return this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user