diff --git a/src/components/Carousel/Carousel.svelte b/src/components/Carousel/Carousel.svelte index e5f09ec..43c35af 100644 --- a/src/components/Carousel/Carousel.svelte +++ b/src/components/Carousel/Carousel.svelte @@ -286,15 +286,19 @@ // gestures function handleSwipeStart() { + if (!swiping) return _duration = 0 } async function handleThreshold(event) { + if (!swiping) return await directionFnDescription[event.detail.direction]() } function handleSwipeMove(event) { + if (!swiping) return offset += event.detail.dx } function handleSwipeEnd() { + if (!swiping) return showPage(currentPageIndex) } function handleFocused(event) {