Skip to content

Commit 8351dbc

Browse files
committed
fix: background carousel not focusing right child initially
1 parent ddec52a commit 8351dbc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib/components/GlobalBackground/BackgroundCard.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
export let backdropUrl: string;
55
</script>
66

7-
<Card {backdropUrl} orientation="landscape" size="sm" on:click on:clickOrSelect on:enter />
7+
<Card {...$$restProps} {backdropUrl} orientation="landscape" size="sm" on:click on:clickOrSelect on:enter />

src/lib/components/GlobalBackground/BackgroundCarousel.svelte

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
>
2828
{#each backgrounds as background, index}
2929
<BackgroundCard
30+
focusedChild={focusIndex === index}
3031
backdropUrl={background.backdropUrl}
3132
on:clickOrSelect={({ detail }) => {
3233
dispatch('jumpTo', index);

0 commit comments

Comments
 (0)