From 0f3fa06c3eb58c100380f1aaf19dd0870cdb427c Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 28 Oct 2024 22:30:59 +0200 Subject: One more haptic tweak (#5979) * remove 10ms delay and make light * make like haptic light * same for PostThreadComposePrompt --- src/view/com/post-thread/PostThreadComposePrompt.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/view/com/post-thread/PostThreadComposePrompt.tsx') diff --git a/src/view/com/post-thread/PostThreadComposePrompt.tsx b/src/view/com/post-thread/PostThreadComposePrompt.tsx index 2b58cc5fe..89993beec 100644 --- a/src/view/com/post-thread/PostThreadComposePrompt.tsx +++ b/src/view/com/post-thread/PostThreadComposePrompt.tsx @@ -5,7 +5,6 @@ import {useLingui} from '@lingui/react' import {PressableScale} from '#/lib/custom-animations/PressableScale' import {useHaptics} from '#/lib/haptics' -import {isIOS} from '#/platform/detection' import {useProfileQuery} from '#/state/queries/profile' import {useSession} from '#/state/session' import {UserAvatar} from '#/view/com/util/UserAvatar' @@ -45,11 +44,7 @@ export function PostThreadComposePrompt({ onPressIn={ios(() => playHaptic('Light'))} onPress={() => { onPressCompose() - if (isIOS) { - setTimeout(() => playHaptic('Medium'), 10) - } else { - playHaptic('Light') - } + playHaptic('Light') }} onLongPress={ios(() => { onPressCompose() -- cgit 1.4.1