mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +01:00
fix: trigger continuous load condition earlier
This commit is contained in:
parent
9b261a4778
commit
79b08a181d
@ -157,7 +157,8 @@
|
|||||||
clientHeight
|
clientHeight
|
||||||
} = document.documentElement;
|
} = document.documentElement;
|
||||||
|
|
||||||
if (scrollTop + clientHeight >= scrollHeight && $jobsStore.data != null && $jobsStore.data.jobs.hasNextPage) {
|
// Add 100 px offset to trigger load earlier
|
||||||
|
if (scrollTop + clientHeight >= scrollHeight - 100 && $jobsStore.data != null && $jobsStore.data.jobs.hasNextPage) {
|
||||||
let pendingPaging = { ...paging }
|
let pendingPaging = { ...paging }
|
||||||
scrollMultiplier += 1
|
scrollMultiplier += 1
|
||||||
pendingPaging.itemsPerPage = itemsPerPage * scrollMultiplier
|
pendingPaging.itemsPerPage = itemsPerPage * scrollMultiplier
|
||||||
|
Loading…
Reference in New Issue
Block a user