avoid requestIdleCallback as it is not supported on Safari and IE11
This commit is contained in:
parent
8858cffc55
commit
ecccadb77e
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ export class TimelineViewModel extends ViewModel {
|
|||
this._requestedStartTile = startTile;
|
||||
this._requestedEndTile = endTile;
|
||||
if (!this._requestScheduled) {
|
||||
requestIdleCallback(() => {
|
||||
Promise.resolve().then(() => {
|
||||
this._setVisibleTileRange(this._requestedStartTile, this._requestedEndTile);
|
||||
this._requestScheduled = false;
|
||||
});
|
||||
|
|
Reference in a new issue