fix bottom bug inverse condition

This commit is contained in:
MathMan05 2024-08-17 11:36:11 -05:00
parent 678bb73e1e
commit f04efa6930
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ class InfiniteScroller {
updatestuff() { updatestuff() {
this.scrollBottom = this.scroll.scrollHeight - this.scroll.scrollTop - this.scroll.clientHeight; this.scrollBottom = this.scroll.scrollHeight - this.scroll.scrollTop - this.scroll.clientHeight;
this.scrollTop = this.scroll.scrollTop; this.scrollTop = this.scroll.scrollTop;
if (this.scrollBottom) { if (!this.scrollBottom) {
this.reachesBottom(); this.reachesBottom();
} }
//this.watchForChange(); //this.watchForChange();

View file

@ -42,7 +42,7 @@ class InfiniteScroller{
updatestuff(){ updatestuff(){
this.scrollBottom = this.scroll.scrollHeight - this.scroll.scrollTop - this.scroll.clientHeight; this.scrollBottom = this.scroll.scrollHeight - this.scroll.scrollTop - this.scroll.clientHeight;
this.scrollTop=this.scroll.scrollTop; this.scrollTop=this.scroll.scrollTop;
if(this.scrollBottom){ if(!this.scrollBottom){
this.reachesBottom(); this.reachesBottom();
} }
//this.watchForChange(); //this.watchForChange();