Fixes to tab selection

This commit is contained in:
Aleksi Lassila
2023-08-05 16:33:26 +03:00
parent b07554f03b
commit cd20ece074
4 changed files with 20 additions and 6 deletions

View File

@@ -33,6 +33,7 @@
<div
class="flex overflow-x-scroll items-center overflow-y-hidden gap-4 relative px-8 scrollbar-hide py-4"
bind:this={carousel}
tabindex="-1"
on:scroll={() => (scrollX = carousel?.scrollLeft || scrollX)}
>
<slot />