diff --git a/src/CarouselChild.svelte b/src/CarouselChild.svelte index 7241390..6ef5a71 100644 --- a/src/CarouselChild.svelte +++ b/src/CarouselChild.svelte @@ -15,7 +15,5 @@ \ No newline at end of file diff --git a/src/ImageCarousel.svelte b/src/ImageCarousel.svelte index 90fb58d..89de19b 100644 --- a/src/ImageCarousel.svelte +++ b/src/ImageCarousel.svelte @@ -4,7 +4,7 @@ import { store } from './store' /** - * Enable Next/Previos arrows + * Enable Next/Prev arrows */ export let arrows = true; @@ -14,11 +14,10 @@ children = contentContainerElement.children }) - function handleLeftClick() { + function handlePrevClick() { store.prev() } - // TODO: rename to handleNextClick - function handleRightClick() { + function handleNextClick() { store.next() } @@ -28,7 +27,7 @@
<
{/if} @@ -39,7 +38,7 @@
>
{/if}