diff --git a/src/components/atoms/Image.svelte b/src/components/atoms/Image.svelte index da9e981..01af85e 100644 --- a/src/components/atoms/Image.svelte +++ b/src/components/atoms/Image.svelte @@ -67,7 +67,7 @@ } - + { - carousel.scrollTo(index) - } + const goToSlide = (index: number = 0) => carousel.scrollTo(index) /** Move and change arrow direction when moving */ const arrowPosition = writable({ x: 0, y: 0 }) - - /** - * - */ /** Move arrow and define direction on mousemove */ const handleArrowMove = (event: MouseEvent) => { const { left, top, width } = carouselEl.getBoundingClientRect() @@ -88,7 +82,7 @@ }) -