From c7e47698f361fc13f4733afd5af920bcd272844b Mon Sep 17 00:00:00 2001 From: silberengel Date: Mon, 8 Dec 2025 06:51:08 +0100 Subject: [PATCH] suppress upward loading on initial mount expand ToC width --- src/lib/components/publications/Publication.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/publications/Publication.svelte b/src/lib/components/publications/Publication.svelte index d30e588..e16377f 100644 --- a/src/lib/components/publications/Publication.svelte +++ b/src/lib/components/publications/Publication.svelte @@ -993,7 +993,7 @@ let lastUpwardLoadTime = 0; let isUpdatingObserver = false; - let isLoadingUpward = false; + let isLoadingUpward = $state(false); let scrollObserver: IntersectionObserver | null = null; let observedFirstSectionAddress: string | null = null; let observerUpdateTimeout: number | null = null; @@ -1493,7 +1493,7 @@ class="flex justify-center items-center my-2 min-h-[20px] w-full" data-sentinel="top" > - {#if isLoading && leaves.length > 0} + {#if isLoadingUpward && leaves.length > 0}
Loading previous sections... @@ -1687,7 +1687,7 @@