mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
swap logic of haveDrawn and drawLevel within _updateTile
This commit is contained in:
parent
9ef1c5952e
commit
3f03bd6e20
@ -1651,8 +1651,8 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
}
|
}
|
||||||
|
|
||||||
var result = this._updateTile(
|
var result = this._updateTile(
|
||||||
drawLevel,
|
|
||||||
haveDrawn,
|
haveDrawn,
|
||||||
|
drawLevel,
|
||||||
flippedX, y,
|
flippedX, y,
|
||||||
level,
|
level,
|
||||||
levelVisibility,
|
levelVisibility,
|
||||||
@ -1784,15 +1784,15 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
if (tile.loaded && tile.opacity === 1){
|
if (tile.loaded && tile.opacity === 1){
|
||||||
this._setCoverage( this.coverage, level, x, y, true );
|
this._setCoverage( this.coverage, level, x, y, true );
|
||||||
}
|
}
|
||||||
if ( haveDrawn && !drawTile ) {
|
if ( drawTile && !haveDrawn ) {
|
||||||
if ( this._isCovered( this.coverage, level, x, y ) ) {
|
if ( this._isCovered( this.coverage, level, x, y ) ) {
|
||||||
this._setCoverage( this.coverage, level, x, y, true );
|
this._setCoverage( this.coverage, level, x, y, true );
|
||||||
} else {
|
} else {
|
||||||
drawTile = true;
|
haveDrawn = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !drawTile ) {
|
if ( !haveDrawn ) {
|
||||||
return {
|
return {
|
||||||
bestTiles: best,
|
bestTiles: best,
|
||||||
tile: tile
|
tile: tile
|
||||||
|
Loading…
Reference in New Issue
Block a user