about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/view/shell/mobile/index.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx
index 0e42cc134..308501d24 100644
--- a/src/view/shell/mobile/index.tsx
+++ b/src/view/shell/mobile/index.tsx
@@ -9,6 +9,7 @@ import {
   StyleSheet,
   Text,
   TouchableOpacity,
+  TouchableWithoutFeedback,
   useColorScheme,
   useWindowDimensions,
   View,
@@ -394,7 +395,10 @@ export const MobileShell: React.FC = observer(() => {
             )}
           </ScreenContainer>
           {isMenuActive || menuSwipingDirection !== 0 ? (
-            <Animated.View style={[styles.screenMask, menuSwipeOpacity]} />
+            <TouchableWithoutFeedback
+              onPress={() => store.shell.setMainMenuOpen(false)}>
+              <Animated.View style={[styles.screenMask, menuSwipeOpacity]} />
+            </TouchableWithoutFeedback>
           ) : undefined}
           <Animated.View style={[styles.menuDrawer, menuSwipeTransform]}>
             <Menu