remove logging
This commit is contained in:
@@ -97,10 +97,8 @@ class InfiniteScroller {
|
|||||||
}
|
}
|
||||||
snapBottom() {
|
snapBottom() {
|
||||||
const scrollBottom = this.scrollBottom;
|
const scrollBottom = this.scrollBottom;
|
||||||
console.log(scrollBottom);
|
|
||||||
return () => {
|
return () => {
|
||||||
if (this.div && scrollBottom < 4) {
|
if (this.div && scrollBottom < 4) {
|
||||||
console.log("snap");
|
|
||||||
this.div.scrollTop = this.div.scrollHeight;
|
this.div.scrollTop = this.div.scrollHeight;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -98,10 +98,8 @@ class InfiniteScroller{
|
|||||||
}
|
}
|
||||||
snapBottom(){
|
snapBottom(){
|
||||||
const scrollBottom=this.scrollBottom;
|
const scrollBottom=this.scrollBottom;
|
||||||
console.log(scrollBottom);
|
|
||||||
return()=>{
|
return()=>{
|
||||||
if(this.div&&scrollBottom<4){
|
if(this.div&&scrollBottom<4){
|
||||||
console.log("snap");
|
|
||||||
this.div.scrollTop=this.div.scrollHeight;
|
this.div.scrollTop=this.div.scrollHeight;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user