From 2268f00bcd3b1b13d2d75968d8ac1c084fccbd6f Mon Sep 17 00:00:00 2001 From: Vadim Date: Wed, 4 May 2022 23:17:14 +0300 Subject: [PATCH] Code cleanup --- src/components/Carousel/Carousel.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Carousel/Carousel.svelte b/src/components/Carousel/Carousel.svelte index 5b7fb3b..be1951f 100644 --- a/src/components/Carousel/Carousel.svelte +++ b/src/components/Carousel/Carousel.svelte @@ -36,7 +36,7 @@ 'loaded': () => loaded = value, })(key) }) - + const dispatch = createEventDispatcher() /** @@ -119,7 +119,7 @@ export let swiping = true /** - * Number of particles to show + * Number of particles to show */ export let particlesToShow = 1 $: { @@ -127,7 +127,7 @@ } /** - * Number of particles to scroll + * Number of particles to scroll */ export let particlesToScroll = 1 $: { @@ -161,7 +161,7 @@ }) => { pageWindowWidth = width data.particleWidth = pageWindowWidth / data.particlesToShow - + applyParticleSizes({ particlesContainerChildren: particlesContainer.children, particleWidth: data.particleWidth, @@ -240,10 +240,10 @@ function handleHovered(event) { data.focused = event.detail.value - } + } function handleTapped() { methods.toggleFocused() - } + } function showPrevPage() { methods.showPrevPage()