From 84a55968ee2c5e0c886458b1c51565123d33e4ed Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 31 Jan 2024 15:40:47 -0500 Subject: [PATCH] Allow preloading of tiles for zero opacity tiled images --- src/tiledimage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index cb7dd778..9b202819 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -1434,7 +1434,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag let lowestLevel = tiles.length ? tiles[0].level : 0; let drawArea = this.getDrawArea(); - if(!drawArea || this._opacity === 0){ + if(!drawArea || (this._opacity === 0 && !this._preload)){ return; }