diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-18 10:49:27 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-18 10:49:27 +0900 |
| commit | fcde6789ff4d896e2170b36faa9e9fba7b4a0e57 (patch) | |
| tree | ab2cebb72af4f45639272cde36d2d21a94c37f8c /packages/frontend/src/components/MkSwitch.vue | |
| parent | Bump version to 2025.8.0-alpha.13 (diff) | |
| download | misskey-fcde6789ff4d896e2170b36faa9e9fba7b4a0e57.tar.gz misskey-fcde6789ff4d896e2170b36faa9e9fba7b4a0e57.tar.bz2 misskey-fcde6789ff4d896e2170b36faa9e9fba7b4a0e57.zip | |
feat(frontend): introduce haptic feedback as experimental feature
#16410
Diffstat (limited to 'packages/frontend/src/components/MkSwitch.vue')
| -rw-r--r-- | packages/frontend/src/components/MkSwitch.vue | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkSwitch.vue b/packages/frontend/src/components/MkSwitch.vue index 92359b773a..9a2bea3616 100644 --- a/packages/frontend/src/components/MkSwitch.vue +++ b/packages/frontend/src/components/MkSwitch.vue @@ -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> |