forked from retoor/snek
Scroll infinite.
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
let scrollTop = messagesContainer.scrollTop;
|
||||
let scrollableHeight = messagesContainer.scrollHeight - messagesContainer.clientHeight;
|
||||
|
||||
if (scrollTop < scrollableHeight / 5) {
|
||||
if (scrollTop > scrollableHeight / 1.2) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user