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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user