tangled
alpha
login
or
join now
witchcraft.systems
/
pds-dash
15
fork
atom
this repo has no description
15
fork
atom
overview
issues
pulls
pipelines
Distance tweaks for hidden loads
ari.express
10 months ago
5fbb29f7
dc3039ef
verified
This commit was signed with the committer's
known signature
.
ari.express
SSH Key Fingerprint:
SHA256:j4xpQafvRcIH4rwZqM5aREIogWsCjyYohia7vH0+uZY=
+2
-1
1 changed file
expand all
collapse all
unified
split
src
App.svelte
+2
-1
src/App.svelte
···
18
18
// Infinite loading function
19
19
const onInfinite = ({ detail: { loaded, complete } } : { detail : { loaded : () => void, complete : () => void}}) => {
20
20
getNextPosts().then((newPosts) => {
21
21
+
console.log("Loading next posts...");
21
22
if (newPosts.length > 0) {
22
23
posts = [...posts, ...newPosts];
23
24
loaded();
···
53
54
<PostComponent post={postObject as Post} />
54
55
{/each}
55
56
<InfiniteLoading on:infinite={onInfinite}
56
56
-
distance={0}
57
57
+
distance={3000}
57
58
/>
58
59
<div id="spacer"></div>
59
60
</div>