Bladeren bron

[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 jaren geleden
bovenliggende
commit
86046eaa5f
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1
    0
      lib/ios/RNNSideMenuSideOptions.m

+ 1
- 0
lib/ios/RNNSideMenuSideOptions.m Bestand weergeven

@@ -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) {