iOS: #1157 (interactive back gesture)

Tweaked to avoid getting stuck if the edge swipe is cancelled.
This commit is contained in:
David Sinclair 2019-05-16 19:43:09 -07:00
parent f5e189d82c
commit 618c8753cb

View file

@ -328,8 +328,6 @@
if (self.standardInteractivePopGestureDelegate == nil) {
self.standardInteractivePopGestureDelegate = self.navigationController.interactivePopGestureRecognizer.delegate;
} else if (self.navigationController.interactivePopGestureRecognizer.delegate != self.standardInteractivePopGestureDelegate) {
self.navigationController.interactivePopGestureRecognizer.delegate = self.standardInteractivePopGestureDelegate;
}
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
@ -444,6 +442,11 @@
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
if (self.navigationController.interactivePopGestureRecognizer.delegate != self.standardInteractivePopGestureDelegate) {
self.navigationController.interactivePopGestureRecognizer.delegate = self.standardInteractivePopGestureDelegate;
}
if (appDelegate.inStoryDetail && self.isPhoneOrCompact) {
appDelegate.inStoryDetail = NO;
// [appDelegate.storyPageControl resetPages];