fix bottom bug inverse condition

This commit is contained in:
MathMan05 committed 2024-08-17 11:36:11 -05:00
1 parent 678bb73e1e
commit f04efa6930
2 files changed
+2 -2

No files matched your search

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