Skip to content

Commit

Permalink
double haptic (#5886)
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius authored Oct 21, 2024
1 parent 24679d5 commit f6649e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/view/com/util/fab/FABInner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ export function FABInner({testID, icon, onPress, ...props}: FABProps) {
]}>
<PressableScale
testID={testID}
onPressIn={() => playHaptic('Light')}
onPress={e => {
playHaptic('Light')
setTimeout(
() => {
onPress?.(e)
},
isHapticsDisabled ? 0 : 75,
)
setTimeout(() => onPress?.(e), isHapticsDisabled ? 0 : 75)
}}
onLongPress={e => {
playHaptic('Medium')
setTimeout(() => onPress?.(e), isHapticsDisabled ? 0 : 75)
}}
targetScale={0.9}
{...props}>
Expand Down

0 comments on commit f6649e2

Please sign in to comment.