Suppress system gesture detection during streaming

This commit is contained in:
Cameron Gutman
2017-09-15 00:30:51 -07:00
parent 86f7112789
commit d0d60b8ffc
4 changed files with 38 additions and 0 deletions

View File

@@ -583,6 +583,7 @@ static CGFloat scaledValue( CGFloat v1, CGFloat min2, CGFloat max2, CGFloat min1
FrontViewPosition _panInitialFrontPosition;
NSMutableArray *_animationQueue;
BOOL _userInteractionStore;
UIViewController *_primaryViewController;
}
const int FrontViewPositionNone = 0xff;
@@ -1364,6 +1365,26 @@ const int FrontViewPositionNone = 0xff;
_enqueue( [theSelf _performTransitionOperation:operation withViewController:newViewController animated:animated] );
}
- (void)setPrimaryViewController:(UIViewController*)viewController
{
_primaryViewController = viewController;
// These are derived from the primary view controller
if (@available(iOS 11.0, *)) {
[self setNeedsUpdateOfHomeIndicatorAutoHidden];
[self setNeedsUpdateOfScreenEdgesDeferringSystemGestures];
}
}
- (UIViewController*)childViewControllerForHomeIndicatorAutoHidden
{
return _primaryViewController;
}
- (UIViewController*)childViewControllerForScreenEdgesDeferringSystemGestures
{
return _primaryViewController;
}
#pragma mark Animated view controller deployment and layout