mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-03-28 19:35:10 +03:00
Sort N tiles always for a better look and feel.
This commit is contained in:
parent
13955b0bf6
commit
55a05963a2
1 changed files with 1 additions and 1 deletions
|
@ -1930,8 +1930,8 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||
return [tile];
|
||||
}
|
||||
previousBest.push(tile);
|
||||
if (previousBest.length > maxNTiles) {
|
||||
this._sortTiles(previousBest);
|
||||
if (previousBest.length > maxNTiles) {
|
||||
previousBest.pop();
|
||||
}
|
||||
return previousBest;
|
||||
|
|
Loading…
Add table
Reference in a new issue