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