Przeglądaj źródła

[V2] Disable gesture capture when sideMenu is disabled #3651 (#3898)

By default, gestures are captures when you layout a sideMenu, regardless of whether you disable the sideMenu. This is problematic when you want to push a screen and have the swipe back gesture pop the newly pushed screen, instead of opening the drawer.

This PR simply disabled gestures when the sideMenu is disabled, and enables when the sideMenu is enabled. It resolves #3651
Rob Goldiez 6 lat temu
rodzic
commit
86046eaa5f
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1
    0
      lib/ios/RNNSideMenuSideOptions.m

+ 1
- 0
lib/ios/RNNSideMenuSideOptions.m Wyświetl plik

@@ -17,6 +17,7 @@
17 17
 				default:
18 18
 					break;
19 19
 			}
20
+			sideMenuController.sideMenu.openDrawerGestureModeMask = [self.enabled boolValue] ? MMOpenDrawerGestureModeAll : MMOpenDrawerGestureModeNone;
20 21
 		}
21 22
 
22 23
 		if (self.visible) {