Fix eslint error and update svelte related stuff

This commit is contained in:
2023-01-22 21:39:10 +01:00
parent 1143651549
commit b76f70a05f
32 changed files with 80 additions and 70 deletions

View File

@@ -20,7 +20,7 @@
/** Navigate to specific slide */
const goToSlide = (index: number = 0) => carousel.scrollTo(index)
const goToSlide = (index = 0) => carousel.scrollTo(index)
/** Move and change arrow direction when moving */
const arrowPosition = writable({ x: 0, y: 0 })
@@ -89,6 +89,7 @@
<div class="carousel__viewport" bind:this={carouselEl}
on:mousemove={handleArrowMove}
on:click={handleArrowClick}
on:keydown
>
<div class="carousel__slides">
{#each slides as { id, alt }}