소스 검색

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