From aef80c8b13afb76797225538524e22d007b89179 Mon Sep 17 00:00:00 2001 From: Adrien Foulon <6115458+Tofandel@users.noreply.github.com> Date: Mon, 28 Apr 2025 16:56:14 +0200 Subject: [PATCH] fix: allow users to pinch zoom on mobile and prevent click if user drags more than 10px --- playground/App.vue | 4 ++-- src/components/Carousel/Carousel.css | 2 +- src/components/Carousel/Carousel.ts | 5 +++++ src/composables/useDrag.ts | 20 ++++++++++++++------ 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/playground/App.vue b/playground/App.vue index 7243f72..cd97112 100644 --- a/playground/App.vue +++ b/playground/App.vue @@ -171,7 +171,7 @@ const handleReset = () => { items.splice(0, items.length, ...defaultSlides) } -const handelButtonClick = () => { +const handleButtonClick = () => { alert('Button clicked') } @@ -264,7 +264,7 @@ onMounted(() => { >

{{ item.title }}

{{ item.description }}

- +