fix bottom bug inverse condition
This commit is contained in:
parent
678bb73e1e
commit
f04efa6930
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue