mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-03-30 12:10:12 +03:00
Solves issue #1318 : transparent tiledImages get _needsDraw = false in the draw function.
This commit is contained in:
parent
628cfad52a
commit
f64388b038
1 changed files with 4 additions and 0 deletions
|
@ -311,6 +311,10 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||
this._updateViewport();
|
||||
this._midDraw = false;
|
||||
}
|
||||
// Images with opacity 0 should not need to be drawn in future. this._needsDraw = false is set in this._updateViewport() for other images.
|
||||
if (this.opacity === 0) {
|
||||
this._needsDraw = false;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue