From 3f03bd6e20324a3d7772f5655a512d3148eaddee Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 22 May 2024 17:36:16 -0400 Subject: [PATCH] swap logic of haveDrawn and drawLevel within _updateTile --- src/tiledimage.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index 0bb34b69..545ec5a1 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -1651,8 +1651,8 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag } var result = this._updateTile( - drawLevel, haveDrawn, + drawLevel, flippedX, y, level, levelVisibility, @@ -1784,15 +1784,15 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag if (tile.loaded && tile.opacity === 1){ this._setCoverage( this.coverage, level, x, y, true ); } - if ( haveDrawn && !drawTile ) { + if ( drawTile && !haveDrawn ) { if ( this._isCovered( this.coverage, level, x, y ) ) { this._setCoverage( this.coverage, level, x, y, true ); } else { - drawTile = true; + haveDrawn = true; } } - if ( !drawTile ) { + if ( !haveDrawn ) { return { bestTiles: best, tile: tile