mirror of https://github.com/acanas/swad-core.git
Version 23.47: Nov 08, 2023 Infinite scroll in timeline.
This commit is contained in:
parent
93962fc562
commit
19371744a8
|
@ -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 ();
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 *******************************/
|
||||
|
|
Loading…
Reference in New Issue