add missing check
This commit is contained in:
@@ -60,7 +60,7 @@ class InfiniteScroller {
|
||||
snapBottom() {
|
||||
const scrollBottom = this.scrollBottom;
|
||||
return () => {
|
||||
if (scrollBottom < 30) {
|
||||
if (this.scroll && scrollBottom < 30) {
|
||||
this.scroll.scrollTop = this.scroll.scrollHeight;
|
||||
}
|
||||
};
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user