diff --git a/src/organisms/Carousel.svelte b/src/organisms/Carousel.svelte index a83e8a6..aa40d42 100644 --- a/src/organisms/Carousel.svelte +++ b/src/organisms/Carousel.svelte @@ -53,7 +53,7 @@ } // Send current photo to event - const sendCurrentPhoto = ({ init = false }) => { + const sendCurrentPhoto = (init = false) => { dispatch('photoChange', { currentPhoto: photos[currentIndex], init @@ -102,7 +102,7 @@ animateIn(scope) } - // Hover function + // Controls hover hover = event => { const button = event.currentTarget.querySelector('button') const photoActive = document.querySelector('.gallery__photo--active')