add missing check
This commit is contained in:
parent
71dd54fc0e
commit
b0a52d7c8f
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ class InfiniteScroller{
|
|||
snapBottom(){
|
||||
const scrollBottom=this.scrollBottom;
|
||||
return ()=>{
|
||||
if(scrollBottom<30){
|
||||
if(this.scroll&&scrollBottom<30){
|
||||
this.scroll.scrollTop=this.scroll.scrollHeight;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue