Skip to content

Commit cd2006d

Browse files
committed
clear press delay timeout
1 parent f1f4d22 commit cd2006d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/Pressable/Pressable.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ export default function Pressable(props: PressableProps) {
145145
longPressTimeoutRef.current = null;
146146
}
147147

148+
if (pressDelayTimeoutRef.current) {
149+
clearTimeout(pressDelayTimeoutRef.current);
150+
}
151+
148152
return;
149153
}
150154

0 commit comments

Comments
 (0)