Scroll infinite.

This commit is contained in:
retoor 2025-02-17 19:57:48 +01:00
parent 1b6ebf5008
commit 6bdc6a7347

View File

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