mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
Correctly set the rightmost tile property when flipped
This ensures that seams are not visible in Firefox and Safari when the image is wrapped horizontally and also flipped.
This commit is contained in:
parent
3c57063632
commit
b2b95e8556
@ -1526,9 +1526,15 @@ function getTile(
|
|||||||
sourceBounds
|
sourceBounds
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (tiledImage.getFlip()) {
|
||||||
|
if (xMod === 0) {
|
||||||
|
tile.isRightMost = true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
if (xMod === numTiles.x - 1) {
|
if (xMod === numTiles.x - 1) {
|
||||||
tile.isRightMost = true;
|
tile.isRightMost = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (yMod === numTiles.y - 1) {
|
if (yMod === numTiles.y - 1) {
|
||||||
tile.isBottomMost = true;
|
tile.isBottomMost = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user