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 {
this.addStatuses(await this.fetchStatusesAndPossiblyFallBack())
}
// TODO: this is just a guess. allVisibleItemsHaveHeight should be more accurate
requestAnimationFrame(() => {
requestAnimationFrame(() => {
this.set({initialized: true})

View file

@ -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