Переглянути джерело

VLCMovieViewController: follow up to VLCMovieViewController: adopt the default behavior to switch video aspectratio between fullscreen and without notch on iPhone x

Carola Nitz 7 роки тому
батько
коміт
fd7575606f
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      Sources/VLCMovieViewController.m

+ 1 - 2
Sources/VLCMovieViewController.m

@@ -263,6 +263,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
         _tapToSeekRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapToSeekRecognized:)];
         [_tapToSeekRecognizer setNumberOfTapsRequired:2];
         [self.view addGestureRecognizer:_tapToSeekRecognizer];
+        [_tapOnVideoRecognizer requireGestureRecognizerToFail:_tapToSeekRecognizer];
     }
     _tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(togglePlayPause)];
     [_tapRecognizer setNumberOfTouchesRequired:2];
@@ -272,8 +273,6 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
     [_panRecognizer setMinimumNumberOfTouches:1];
     [_panRecognizer setMaximumNumberOfTouches:1];
 
-    [_tapOnVideoRecognizer requireGestureRecognizerToFail:_tapToSeekRecognizer];
-
     _swipeRecognizerLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeRecognized:)];
     _swipeRecognizerLeft.direction = UISwipeGestureRecognizerDirectionLeft;
     _swipeRecognizerRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeRecognized:)];