mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
avoid requestIdleCallback as it is not supported on Safari and IE11
This commit is contained in:
parent
8858cffc55
commit
ecccadb77e
@ -55,7 +55,7 @@ export class TimelineViewModel extends ViewModel {
|
|||||||
this._requestedStartTile = startTile;
|
this._requestedStartTile = startTile;
|
||||||
this._requestedEndTile = endTile;
|
this._requestedEndTile = endTile;
|
||||||
if (!this._requestScheduled) {
|
if (!this._requestScheduled) {
|
||||||
requestIdleCallback(() => {
|
Promise.resolve().then(() => {
|
||||||
this._setVisibleTileRange(this._requestedStartTile, this._requestedEndTile);
|
this._setVisibleTileRange(this._requestedStartTile, this._requestedEndTile);
|
||||||
this._requestScheduled = false;
|
this._requestScheduled = false;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user