fixing up the dialog class with other bug fixes

This commit is contained in:
MathMan05
2024-09-09 10:46:30 -05:00
parent b57988e734
commit 8e87635209
9 changed files with 55 additions and 66 deletions

View File

@@ -92,7 +92,7 @@ class InfiniteScroller{
}
currrunning:boolean=false;
async addedBottom(){
this.updatestuff();
await this.updatestuff();
const func=this.snapBottom();
await this.watchForChange();
func();
@@ -100,7 +100,7 @@ class InfiniteScroller{
snapBottom(){
const scrollBottom=this.scrollBottom;
return()=>{
if(this.div&&scrollBottom<10){
if(this.div&&scrollBottom<4){
this.div.scrollTop=this.div.scrollHeight+20;
}
};