Skip to content

Commit

Permalink
fix: change default long-press handler only on mobile chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
sangar-1028 committed Sep 11, 2023
1 parent 4ddeff9 commit 4370f6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const GenericPressable = forwardRef((props, ref) => {
return KeyboardShortcut.subscribe(shortcutKey, onPressHandler, descriptionKey, modifiers, true, false, 0, false);
}, [keyboardShortcut, onPressHandler]);

const defaultLongPressHandler = Browser.isMobile() ? () => {} : undefined
const defaultLongPressHandler = Browser.isMobileChrome() ? () => {} : undefined;
return (
<Pressable
hitSlop={shouldUseAutoHitSlop ? hitSlop : undefined}
Expand Down

0 comments on commit 4370f6f

Please sign in to comment.