aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-02-27 19:47:26 +0000
committerMax Kostikov <max@kostikov.co>2021-02-27 19:47:26 +0000
commit1d899d387e89b67245249204249052bf7b65f5c1 (patch)
tree86b8ed42e016bb9cbfcb5ececbc03585a941a23a /view/js/main.js
parent5440a65607f3c67cc6ecacbf2d54c5895e5bc212 (diff)
parentfbb1d6aa41d9eb7a27b4a8bc79747ac0797db0c7 (diff)
downloadvolse-hubzilla-1d899d387e89b67245249204249052bf7b65f5c1.tar.gz
volse-hubzilla-1d899d387e89b67245249204249052bf7b65f5c1.tar.bz2
volse-hubzilla-1d899d387e89b67245249204249052bf7b65f5c1.zip
Merge branch 'dev' into 'dev'
Dev sync See merge request kostikov/core!2
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js
index cd95a8a0b..0c48c8b18 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1563,7 +1563,7 @@ function zFormError(elm,x) {
$(window).scroll(function () {
if(typeof buildCmd == 'function') {
// This is a content page with items and/or conversations
- if($(window).scrollTop() + $(window).height() > $(document).height() - 500) {
+ if($(window).scrollTop() + $(window).height() > $('#conversation-end').position().top) {
if((pageHasMoreContent) && (! loadingPage)) {
next_page++;
scroll_next = true;
@@ -1574,7 +1574,7 @@ $(window).scroll(function () {
}
else {
// This is some other kind of page - perhaps a directory
- if($(window).scrollTop() + $(window).height() > $(document).height() - 500) {
+ if($(window).scrollTop() + $(window).height() > $('#page-end').position().top) {
if((pageHasMoreContent) && (! loadingPage) && (! justifiedGalleryActive)) {
next_page++;
scroll_next = true;