about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThreadComposePrompt.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-10-28 22:30:59 +0200
committerGitHub <noreply@github.com>2024-10-28 20:30:59 +0000
commit0f3fa06c3eb58c100380f1aaf19dd0870cdb427c (patch)
tree784dd5eb6df72089cd7d404b8589f2d15d22b85f /src/view/com/post-thread/PostThreadComposePrompt.tsx
parentd050a78a2d4302d0c2c10ff01f98b575074b1be6 (diff)
downloadvoidsky-0f3fa06c3eb58c100380f1aaf19dd0870cdb427c.tar.zst
One more haptic tweak (#5979)
* remove 10ms delay and make light

* make like haptic light

* same for PostThreadComposePrompt
Diffstat (limited to 'src/view/com/post-thread/PostThreadComposePrompt.tsx')
-rw-r--r--src/view/com/post-thread/PostThreadComposePrompt.tsx7
1 files changed, 1 insertions, 6 deletions
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()