increase offset to start back-filling

This commit is contained in:
Bruno Windels 2020-08-17 15:22:55 +02:00
parent 2cfd38379f
commit 5ae4a1aae3

View file

@ -39,7 +39,7 @@ export class TimelineList extends ListView {
async _onScroll() {
const root = this.root();
if (root.scrollTop === 0 && !this._topLoadingPromise && this._viewModel) {
if (root.scrollTop < 100 && !this._topLoadingPromise && this._viewModel) {
const beforeFromBottom = this._distanceFromBottom();
this._topLoadingPromise = this._viewModel.loadAtTop();
await this._topLoadingPromise;