mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-04 06:13:31 +03:00
Fix flipped debug drawing context
This commit is contained in:
parent
2670f62892
commit
4fe5a84170
1 changed files with 10 additions and 3 deletions
|
@ -508,9 +508,9 @@ $.Drawer.prototype = {
|
|||
tiledImage._getRotationPoint(true), true)
|
||||
});
|
||||
}
|
||||
if((this.viewport.degrees == 0 && tiledImage.getRotation(true) % 360 !== 0) || (this.viewport.degrees !== 0 && tiledImage.getRotation(true) % 360 == 0)){
|
||||
if((this.viewport.getFlip() && !tiledImage.getFlip()) || (!this.viewport.getFlip() && tiledImage.getFlip()) ) {
|
||||
this._flip();
|
||||
if (tiledImage.viewport.degrees == 0 && tiledImage.getRotation(true) % 360 == 0){
|
||||
if((tiledImage._drawer.viewer.viewport.getFlip() && !tiledImage.getFlip()) || (!tiledImage._drawer.viewer.viewport.getFlip() && tiledImage.getFlip()) ) {
|
||||
tiledImage._drawer._flip({});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -578,6 +578,13 @@ $.Drawer.prototype = {
|
|||
if (tiledImage.getRotation(true) % 360 !== 0) {
|
||||
this._restoreRotationChanges();
|
||||
}
|
||||
|
||||
if (tiledImage.viewport.degrees == 0 && tiledImage.getRotation(true) % 360 == 0){
|
||||
if((tiledImage._drawer.viewer.viewport.getFlip() && !tiledImage.getFlip()) || (!tiledImage._drawer.viewer.viewport.getFlip() && tiledImage.getFlip()) ) {
|
||||
tiledImage._drawer._flip({});
|
||||
}
|
||||
}
|
||||
|
||||
context.restore();
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue