1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-05 00:45:50 +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

@@ -0,0 +1,13 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { haptic as _haptic } from 'ios-haptics';
import { prefer } from '@/preferences.js';
export function haptic() {
if (prefer.s['experimental.enableHapticFeedback']) {
_haptic();
}
}