From 092b58e651605b3bdb9ce2582a95345cade45f7e Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Mon, 20 Apr 2026 22:19:51 +0300 Subject: [PATCH] feat(FontVirtualList): suppress font loading during jump scroll catch-up --- .../ui/FontVirtualList/FontVirtualList.svelte | 49 ++++++++++++++++--- 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/src/entities/Font/ui/FontVirtualList/FontVirtualList.svelte b/src/entities/Font/ui/FontVirtualList/FontVirtualList.svelte index 48d03fb..7d4cc84 100644 --- a/src/entities/Font/ui/FontVirtualList/FontVirtualList.svelte +++ b/src/entities/Font/ui/FontVirtualList/FontVirtualList.svelte @@ -4,6 +4,7 @@ - Handles font registration with the manager -->
- {#if skeleton && isLoading && fontStore.fonts.length === 0} + {#if showInitialSkeleton && skeleton} -
+
{@render skeleton()}
{:else} @@ -131,14 +162,20 @@ function handleNearBottom(_lastVisibleIndex: number) { {#snippet children(scope)} {@render children(scope)} {/snippet} + {#if showCatchupSkeleton && skeleton} +
+ {@render skeleton()} +
+ {/if} {/if}