File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -275,8 +275,10 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
275
275
276
276
- (BOOL )gestureRecognizer : (UIGestureRecognizer *)gestureRecognizer
277
277
shouldReceiveTouch : (UITouch *)touch {
278
- return [gestureRecognizer isKindOfClass: [UITapGestureRecognizer class ]] &&
279
- ![touch.view isDescendantOfView: _contentView];
278
+ if ([touch.view isDescendantOfView: _contentView]) {
279
+ return ![gestureRecognizer isKindOfClass: [UITapGestureRecognizer class ]];
280
+ }
281
+ return YES ;
280
282
}
281
283
282
284
- (void )panGestureRecognized : (UIPanGestureRecognizer *)recognizer {
Original file line number Diff line number Diff line change @@ -466,6 +466,8 @@ - (void)sideViewDidSelectSettings:(PestoSideView *)sideView {
466
466
navVC.navigationBar .barTintColor = headerColor;
467
467
navVC.navigationBar .titleTextAttributes = @{NSForegroundColorAttributeName : white};
468
468
navVC.navigationBar .translucent = NO ;
469
+
470
+ [sideView hideSideView ];
469
471
[self presentViewController: navVC animated: YES completion: nil ];
470
472
}
471
473
You can’t perform that action at this time.
0 commit comments