diff options
author | Mario <mario@mariovavti.com> | 2021-02-25 12:55:19 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-02-25 12:55:19 +0000 |
commit | b29e121113a588d88b3d8f4265bece2c5e997cef (patch) | |
tree | c48d9caf50633015374ac07cda5c2b91aba150f7 /view/js/main.js | |
parent | a033c439f3486c6ce31fb5d680c363ce0582d451 (diff) | |
download | volse-hubzilla-b29e121113a588d88b3d8f4265bece2c5e997cef.tar.gz volse-hubzilla-b29e121113a588d88b3d8f4265bece2c5e997cef.tar.bz2 volse-hubzilla-b29e121113a588d88b3d8f4265bece2c5e997cef.zip |
replace sticky_kit with a simpler homwgrown solution (still a bit raw) and slightly change the way we load new content so that people with a long aside column do not have to scroll all the way to the bottom for loading the next page
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 4 |
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; |