diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-10-11 09:18:24 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-10-11 09:18:24 -0500 |
commit | 4143167ab7d8c626de0671cf3255bf31f0916031 (patch) | |
tree | 502d39c711d47e598084e03eaa5633f1e145e335 /src/view/shell/mobile/index.tsx | |
parent | ba6580101e5b8f2f994d37be14ae61fd4c3ef1ee (diff) | |
download | voidsky-4143167ab7d8c626de0671cf3255bf31f0916031.tar.zst |
Speed up shell nav button presses
Diffstat (limited to 'src/view/shell/mobile/index.tsx')
-rw-r--r-- | src/view/shell/mobile/index.tsx | 3 |
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}> |