mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-12 10:56:14 +00:00
Suppress system gesture detection during streaming
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user