add missing check

This commit is contained in:
MathMan05 2024-08-17 13:34:38 -05:00
parent 71dd54fc0e
commit b0a52d7c8f
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}
}