mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +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,8 +1526,14 @@ function getTile(
|
|||||||
sourceBounds
|
sourceBounds
|
||||||
);
|
);
|
||||||
|
|
||||||
if (xMod === numTiles.x - 1) {
|
if (tiledImage.getFlip()) {
|
||||||
tile.isRightMost = true;
|
if (xMod === 0) {
|
||||||
|
tile.isRightMost = true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (xMod === numTiles.x - 1) {
|
||||||
|
tile.isRightMost = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (yMod === numTiles.y - 1) {
|
if (yMod === numTiles.y - 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user