chore(frontend): more haptic

This commit is contained in:
syuilo 2025-08-18 14:24:14 +09:00
parent ff334fe9d7
commit 7786761d76
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,7 @@ import { prefer } from '@/preferences.js';
import { DI } from '@/di.js'; import { DI } from '@/di.js';
import { noteEvents } from '@/composables/use-note-capture.js'; import { noteEvents } from '@/composables/use-note-capture.js';
import { mute as muteEmoji, unmute as unmuteEmoji, checkMuted as isEmojiMuted } from '@/utility/emoji-mute.js'; import { mute as muteEmoji, unmute as unmuteEmoji, checkMuted as isEmojiMuted } from '@/utility/emoji-mute.js';
import { haptic } from '@/utility/haptic.js';
const props = defineProps<{ const props = defineProps<{
noteId: Misskey.entities.Note['id']; noteId: Misskey.entities.Note['id'];
@ -80,6 +81,7 @@ async function toggleReaction() {
if (oldReaction !== props.reaction) { if (oldReaction !== props.reaction) {
sound.playMisskeySfx('reaction'); sound.playMisskeySfx('reaction');
haptic();
} }
if (mock) { if (mock) {
@ -118,6 +120,7 @@ async function toggleReaction() {
} }
sound.playMisskeySfx('reaction'); sound.playMisskeySfx('reaction');
haptic();
if (mock) { if (mock) {
emit('reactionToggled', props.reaction, (props.count + 1)); emit('reactionToggled', props.reaction, (props.count + 1));