1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 19:55:28 +02:00

feat(frontend): introduce haptic feedback as experimental feature

#16410
This commit is contained in:
syuilo
2025-08-18 10:49:27 +09:00
parent 14cc42e305
commit fcde6789ff
9 changed files with 41 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ SPDX-License-Identifier: AGPL-3.0-only
import { toRefs } from 'vue';
import type { Ref } from 'vue';
import XButton from '@/components/MkSwitch.button.vue';
import { haptic } from '@/utility/haptic.js';
const props = defineProps<{
modelValue: boolean | Ref<boolean>;
@@ -48,6 +49,8 @@ const toggle = () => {
if (props.disabled) return;
emit('update:modelValue', !checked.value);
emit('change', !checked.value);
haptic();
};
</script>