This commit is contained in:
2023-06-08 22:22:29 +02:00
parent d24b3e6d3b
commit 3d592969ad
10 changed files with 41 additions and 49 deletions

View File

@@ -1,12 +1,6 @@
<script setup lang="ts">
import { OnClickOutside } from '@vueuse/components'
import { Haptics, ImpactStyle } from '@capacitor/haptics'
const vibrate = (event: PointerEvent) => {
if (event.target !== document.activeElement) {
Haptics.impact({ style: ImpactStyle.Light })
}
}
import { vibrate } from '@/composables/useHaptics'
</script>
<template>
<OnClickOutside>