refactor: various typo fixes (#2735)

This commit is contained in:
TAKAHASHI Shuuji 2024-04-01 23:56:30 +09:00 committed by GitHub
parent 611d556936
commit d807e06fa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 14 additions and 14 deletions

View file

@ -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)
@ -218,7 +218,7 @@ function handleZoomDrag([deltaX, deltaY]: Vector2) {
function handleSlideDrag([movementX, movementY]: Vector2) {
goToFocusedSlide()
if (Math.abs(movementY) > Math.abs(movementX)) // vertical movement is more then horizontal
if (Math.abs(movementY) > Math.abs(movementX)) // vertical movement is more than horizontal
y.value -= movementY / scale.value
else
x.value -= movementX / scale.value