fix logic error

This commit is contained in:
Nolan Lawson 2018-01-24 18:44:24 -08:00
parent 754bbf0d46
commit 747a842304
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@
} else { } else {
this.addStatuses(await this.fetchStatusesAndPossiblyFallBack()) this.addStatuses(await this.fetchStatusesAndPossiblyFallBack())
} }
// TODO: this is just a guess. allVisibleItemsHaveHeight should be more accurate
requestAnimationFrame(() => { requestAnimationFrame(() => {
requestAnimationFrame(() => { requestAnimationFrame(() => {
this.set({initialized: true}) this.set({initialized: true})

View File

@ -109,6 +109,7 @@
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
console.log('no need to force scroll top') console.log('no need to force scroll top')
} }
return
} }
let initializedScrollTop = false let initializedScrollTop = false
let node = this.refs.node let node = this.refs.node