From 747a84230468edf3916fb9f21aba3f26b55a6a6a Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 24 Jan 2018 18:44:24 -0800 Subject: [PATCH] fix logic error --- routes/_components/Timeline.html | 1 + routes/_components/VirtualListContainer.html | 1 + 2 files changed, 2 insertions(+) diff --git a/routes/_components/Timeline.html b/routes/_components/Timeline.html index 3426226d..5a20a324 100644 --- a/routes/_components/Timeline.html +++ b/routes/_components/Timeline.html @@ -45,6 +45,7 @@ } else { this.addStatuses(await this.fetchStatusesAndPossiblyFallBack()) } + // TODO: this is just a guess. allVisibleItemsHaveHeight should be more accurate requestAnimationFrame(() => { requestAnimationFrame(() => { this.set({initialized: true}) diff --git a/routes/_components/VirtualListContainer.html b/routes/_components/VirtualListContainer.html index e84e9d84..4ec74998 100644 --- a/routes/_components/VirtualListContainer.html +++ b/routes/_components/VirtualListContainer.html @@ -109,6 +109,7 @@ if (process.env.NODE_ENV !== 'production') { console.log('no need to force scroll top') } + return } let initializedScrollTop = false let node = this.refs.node