From 335f1f60eb171d5f7de7bae26fcffc53faeeeaca Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Sun, 24 Mar 2024 14:38:48 +0900 Subject: [PATCH] chore: fix typo in `ModalMediaPreviewCarousel.vue` --- components/modal/ModalMediaPreviewCarousel.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/modal/ModalMediaPreviewCarousel.vue b/components/modal/ModalMediaPreviewCarousel.vue index a2bab65f..538863e9 100644 --- a/components/modal/ModalMediaPreviewCarousel.vue +++ b/components/modal/ModalMediaPreviewCarousel.vue @@ -15,7 +15,7 @@ const emit = defineEmits<{ const modelValue = defineModel({ required: true }) const slideGap = 20 -const doubleTapTreshold = 250 +const doubleTapThreshold = 250 const view = ref() const slider = ref() @@ -147,7 +147,7 @@ function handleLastDrag(tap: boolean, swipe: Vector2, movement: Vector2, positio let lastTapAt = 0 function handleTap([positionX, positionY]: Vector2) { const now = Date.now() - const isDoubleTap = now - lastTapAt < doubleTapTreshold + const isDoubleTap = now - lastTapAt < doubleTapThreshold lastTapAt = now if (!isDoubleTap)