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:
Alistair Buxton 2020-10-31 01:59:00 +00:00
parent 3c57063632
commit b2b95e8556

View File

@ -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) {