From ecccadb77e1a10e7a541435142da03a4772cd2ac Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 13 Sep 2021 14:53:34 +0200 Subject: [PATCH] avoid requestIdleCallback as it is not supported on Safari and IE11 --- src/domain/session/room/timeline/TimelineViewModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/room/timeline/TimelineViewModel.js b/src/domain/session/room/timeline/TimelineViewModel.js index 1c53079d..baf9b6e3 100644 --- a/src/domain/session/room/timeline/TimelineViewModel.js +++ b/src/domain/session/room/timeline/TimelineViewModel.js @@ -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; });