Various fixes
This commit is contained in:
parent
0d4ca2d68a
commit
49cdb8fda6
7 changed files with 67 additions and 9 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue