about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-10-11 09:18:24 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-10-11 09:18:24 -0500
commit4143167ab7d8c626de0671cf3255bf31f0916031 (patch)
tree502d39c711d47e598084e03eaa5633f1e145e335
parentba6580101e5b8f2f994d37be14ae61fd4c3ef1ee (diff)
downloadvoidsky-4143167ab7d8c626de0671cf3255bf31f0916031.tar.zst
Speed up shell nav button presses
-rw-r--r--src/view/shell/mobile/index.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx
index b7c13f35c..4541fd92e 100644
--- a/src/view/shell/mobile/index.tsx
+++ b/src/view/shell/mobile/index.tsx
@@ -79,7 +79,8 @@ const Btn = ({
   return (
     <TouchableOpacity
       style={styles.ctrl}
-      onPress={onPress}
+      onPress={onLongPress ? onPress : undefined}
+      onPressIn={onLongPress ? undefined : onPress}
       onLongPress={onLongPress}>
       {notificationCount ? (
         <View style={styles.ctrlCount}>