mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-18 00:51:47 +03:00
chore: fix typo in ModalMediaPreviewCarousel.vue
This commit is contained in:
parent
660549b08b
commit
335f1f60eb
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ const emit = defineEmits<{
|
|||
const modelValue = defineModel<number>({ 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)
|
||||
|
|
Loading…
Reference in a new issue