Add explaining comment
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
This commit is contained in:
parent
b979e11ef5
commit
7e8c0109ae
1 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,12 @@ export class TimelineViewModel extends ViewModel {
|
|||
let hasSeenUpdate = false;
|
||||
const checkForUpdate = (idx, tile) => {
|
||||
if (tile.shape !== "gap") {
|
||||
/*
|
||||
It's possible that this method executes before the GapTile has been rendered,
|
||||
so don't count the GapTile as an update.
|
||||
Usually happens when onScroll() is triggered by a non-timeline UI change,
|
||||
eg: SessionStatusView being rendered
|
||||
*/
|
||||
hasSeenUpdate = true;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue