diff --git a/js/swad23.47.js b/js/swad23.47.js index 34f8831ad..1968e47bd 100644 --- a/js/swad23.47.js +++ b/js/swad23.47.js @@ -1023,10 +1023,9 @@ function moveNewTimelineToTimeline () { var refreshingOldTimeline = false; function handleInfiniteScroll () { - if (refreshingOldTimeline) return; + if (refreshingOldTimeline) return; // Don't check scroll while refreshing - const endOfPage = window.scrollY + window.innerHeight >= document.body.scrollHeight - 100; - if (endOfPage) { + if (window.scrollY + window.innerHeight >= document.body.scrollHeight - 240) { // Near the end of the page refreshingOldTimeline = true; refreshOldTimeline (); } diff --git a/swad_changelog.h b/swad_changelog.h index b8b8e953b..3f92d6a53 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -637,7 +637,7 @@ Me sale este error, no s #define CSS_FILE "swad23.46.1.css" #define JS_FILE "swad23.47.js" /* - Version 23.47: Nov 08, 2023 Infinite scroll in timeline. (335561 lines) + Version 23.47: Nov 08, 2023 Infinite scroll in timeline. (335560 lines) Version 23.46.1: Nov 07, 2023 Improvements in responsive design. (? lines) Version 23.46: Nov 07, 2023 Code refactoring and layout changes in lists of my courses, forums and chat. (335525 lines) Version 23.45: Nov 07, 2023 Improvements in responsive design. (335468 lines) diff --git a/swad_timeline_publication.h b/swad_timeline_publication.h index 01fee0290..d3d83ef03 100644 --- a/swad_timeline_publication.h +++ b/swad_timeline_publication.h @@ -39,7 +39,7 @@ // Number of recent publishings got and shown the first time, before refreshing #define TmlPub_MAX_NEW_PUBS_TO_GET_AND_SHOW 10000 // New publishings retrieved (big number) #define TmlPub_MAX_REC_PUBS_TO_GET_AND_SHOW 10 // Recent publishings to show (first time) -#define TmlPub_MAX_OLD_PUBS_TO_GET_AND_SHOW 20 // Old publishings are retrieved in packs of this size +#define TmlPub_MAX_OLD_PUBS_TO_GET_AND_SHOW 10 // Old publishings are retrieved in packs of this size /*****************************************************************************/ /******************************** Public types *******************************/