Scroll infinite.
This commit is contained in:
parent
1b6ebf5008
commit
6bdc6a7347
@ -62,7 +62,7 @@
|
|||||||
let scrollTop = messagesContainer.scrollTop;
|
let scrollTop = messagesContainer.scrollTop;
|
||||||
let scrollableHeight = messagesContainer.scrollHeight - messagesContainer.clientHeight;
|
let scrollableHeight = messagesContainer.scrollHeight - messagesContainer.clientHeight;
|
||||||
|
|
||||||
if (scrollTop < scrollableHeight / 4) {
|
if (scrollTop > scrollableHeight / 2) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -81,9 +81,9 @@
|
|||||||
if(isLoadingExtra){
|
if(isLoadingExtra){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//if(!isScrolledPastHalf()){
|
if(!isScrolledPastHalf()){
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
isLoadingExtra = true
|
isLoadingExtra = true
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user