Various fixes

This commit is contained in:
MathMan05 2024-11-06 11:58:01 -06:00
parent 0d4ca2d68a
commit 49cdb8fda6
7 changed files with 67 additions and 9 deletions

View file

@ -147,6 +147,7 @@ offset: number
if(nextid){
const html = await this.getHTMLFromID(nextid);
if(!html){
this.destroyFromID(nextid);
return false;
@ -155,6 +156,7 @@ offset: number
fragment.prepend(html);
this.HTMLElements.unshift([html, nextid]);
this.scrollTop += this.averageheight;
}
}
if(this.scrollTop > this.maxDist){
@ -162,7 +164,9 @@ offset: number
if(html){
again = true;
await this.destroyFromID(html[1]);
this.scrollTop -= this.averageheight;
}
}
if(again){