Disable bounce-back on the reveal view controller

This commit is contained in:
Cameron Gutman
2019-09-18 19:59:24 -07:00
parent 34707e7743
commit 61c7d9f2b3

View File

@@ -709,6 +709,10 @@ static NSMutableSet* hostList;
// Get callbacks associated with the viewController
[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
_menuRecognizer = [[UITapGestureRecognizer alloc] init];
[_menuRecognizer addTarget:self action: @selector(showHostSelectionView)];