1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-03 21:56:18 +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

@@ -141,6 +141,7 @@ import { $i } from '@/i.js';
import { checkReactionPermissions } from '@/utility/check-reaction-permissions.js';
import { prefer } from '@/preferences.js';
import { useRouter } from '@/router.js';
import { haptic } from '@/utility/haptic.js';
const router = useRouter();
@@ -431,6 +432,8 @@ function chosen(emoji: string | Misskey.entities.EmojiSimple | UnicodeEmojiDef,
const key = getKey(emoji);
emit('chosen', key);
haptic();
// 最近使った絵文字更新
if (!pinned.value?.includes(key)) {
let recents = store.s.recentlyUsedEmojis;