mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
increase offset to start back-filling
This commit is contained in:
parent
2cfd38379f
commit
5ae4a1aae3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user