mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +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
|
||||
);
|
||||
|
||||
if (xMod === numTiles.x - 1) {
|
||||
tile.isRightMost = true;
|
||||
if (tiledImage.getFlip()) {
|
||||
if (xMod === 0) {
|
||||
tile.isRightMost = true;
|
||||
}
|
||||
} else {
|
||||
if (xMod === numTiles.x - 1) {
|
||||
tile.isRightMost = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (yMod === numTiles.y - 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user