ghost messages and some fixes

This commit is contained in:
MathMan05
2025-04-04 16:31:15 -05:00
parent 8e98535407
commit c479d9a683
11 changed files with 222 additions and 29 deletions

View File

@@ -130,7 +130,13 @@ class InfiniteScroller {
async addedBottom(): Promise<void> {
await this.updatestuff();
const func = this.snapBottom();
await this.watchForChange();
if (this.changePromise) {
while (this.changePromise) {
await new Promise((res) => setTimeout(res, 30));
}
} else {
await this.watchForChange();
}
func();
}
@@ -245,6 +251,7 @@ class InfiniteScroller {
}
this.changePromise = new Promise<boolean>(async (res) => {
//debugger;
try {
if (!this.div) {
res(false);