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() {
|
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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue