backmenutmp

This commit is contained in:
True Zhuanjia
2024-07-08 19:43:23 +08:00
parent a021784d48
commit 3ad8b0db71
3 changed files with 9 additions and 2 deletions
@@ -52,7 +52,6 @@
UIScrollView *_scrollView;
BOOL _userIsInteracting;
CGSize _keyboardSize;
#if !TARGET_OS_TV
CustomEdgeSwipeGestureRecognizer *_exitSwipeRecognizer;
CustomTapGestureRecognizer *_oscLayoutTapRecoginizer;
@@ -136,7 +135,7 @@
[self.view addGestureRecognizer:_playPauseTapGestureRecognizer];
#else
_exitSwipeRecognizer = [[CustomEdgeSwipeGestureRecognizer alloc] initWithTarget:self action:@selector(edgeSwiped)];
_exitSwipeRecognizer = [[CustomEdgeSwipeGestureRecognizer alloc] initWithTarget:self action:@selector(expandSettingsView)];
_exitSwipeRecognizer.edges = _settings.swipeExitScreenEdge.intValue;
_exitSwipeRecognizer.normalizedThresholdDistance = _settings.swipeToExitDistance.floatValue;
_exitSwipeRecognizer.delaysTouchesBegan = NO;
@@ -412,6 +411,10 @@
[self returnToMainFrame];
}
- (void)expandSettingsView{
[self.mainframeViewcontroller simulateSettingsButtonPress];
}
- (void)edgeSwiped {
Log(LOG_I, @"User swiped to end stream");