remove logging
This commit is contained in:
parent
7cf4e40a5f
commit
4154a917e1
2 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue