summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkSwitch.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-08-18 10:49:27 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-08-18 10:49:27 +0900
commitfcde6789ff4d896e2170b36faa9e9fba7b4a0e57 (patch)
treeab2cebb72af4f45639272cde36d2d21a94c37f8c /packages/frontend/src/components/MkSwitch.vue
parentBump version to 2025.8.0-alpha.13 (diff)
downloadmisskey-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.vue3
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>