mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Sort N tiles always for a better look and feel.
This commit is contained in:
parent
13955b0bf6
commit
55a05963a2
@ -1930,8 +1930,8 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
return [tile];
|
return [tile];
|
||||||
}
|
}
|
||||||
previousBest.push(tile);
|
previousBest.push(tile);
|
||||||
|
this._sortTiles(previousBest);
|
||||||
if (previousBest.length > maxNTiles) {
|
if (previousBest.length > maxNTiles) {
|
||||||
this._sortTiles(previousBest);
|
|
||||||
previousBest.pop();
|
previousBest.pop();
|
||||||
}
|
}
|
||||||
return previousBest;
|
return previousBest;
|
||||||
|
Loading…
Reference in New Issue
Block a user