forked from mystiq/hydrogen-web
increase offset to start back-filling
This commit is contained in:
parent
2cfd38379f
commit
5ae4a1aae3
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ export class TimelineList extends ListView {
|
||||||
|
|
||||||
async _onScroll() {
|
async _onScroll() {
|
||||||
const root = this.root();
|
const root = this.root();
|
||||||
if (root.scrollTop === 0 && !this._topLoadingPromise && this._viewModel) {
|
if (root.scrollTop < 100 && !this._topLoadingPromise && this._viewModel) {
|
||||||
const beforeFromBottom = this._distanceFromBottom();
|
const beforeFromBottom = this._distanceFromBottom();
|
||||||
this._topLoadingPromise = this._viewModel.loadAtTop();
|
this._topLoadingPromise = this._viewModel.loadAtTop();
|
||||||
await this._topLoadingPromise;
|
await this._topLoadingPromise;
|
||||||
|
|
Loading…
Reference in a new issue