diff --git a/src/webpage/infiniteScroller.ts b/src/webpage/infiniteScroller.ts index 749d99f..3042f73 100644 --- a/src/webpage/infiniteScroller.ts +++ b/src/webpage/infiniteScroller.ts @@ -84,7 +84,14 @@ class InfiniteScroller { return div; } - async addedBottom(): Promise {} + async addedBottom(): Promise { + const scroll = this.scroller; + if (!scroll) return; + const last = this.weakElmId.get(Array.from(scroll.children).at(-1) as HTMLElement); + if (!last) return; + this.backElm.delete(last); + this.fillIn(); + } snapBottom(): () => void { const scrollBottom = this.scrollBottom; @@ -237,7 +244,7 @@ class InfiniteScroller { } } - filling?: Promise; + private filling?: Promise; private async fillIn(refill = false) { if (this.filling && !refill) { return this.filling;