mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 06:01:13 +00:00
Disable bounce-back on the reveal view controller
This commit is contained in:
@@ -709,6 +709,10 @@ static NSMutableSet* hostList;
|
|||||||
|
|
||||||
// Get callbacks associated with the viewController
|
// Get callbacks associated with the viewController
|
||||||
[self.revealViewController setDelegate:self];
|
[self.revealViewController setDelegate:self];
|
||||||
|
|
||||||
|
// Disable bounce-back on reveal VC otherwise the settings will snap closed
|
||||||
|
// if the user drags all the way off the screen opposite the settings pane.
|
||||||
|
self.revealViewController.bounceBackOnOverdraw = NO;
|
||||||
#else
|
#else
|
||||||
_menuRecognizer = [[UITapGestureRecognizer alloc] init];
|
_menuRecognizer = [[UITapGestureRecognizer alloc] init];
|
||||||
[_menuRecognizer addTarget:self action: @selector(showHostSelectionView)];
|
[_menuRecognizer addTarget:self action: @selector(showHostSelectionView)];
|
||||||
|
|||||||
Reference in New Issue
Block a user