浏览代码

[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 年前
父节点
当前提交
86046eaa5f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      lib/ios/RNNSideMenuSideOptions.m

+ 1
- 0
lib/ios/RNNSideMenuSideOptions.m 查看文件

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