Explorar el Código

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

Carola Nitz hace 7 años
padre
commit
fd7575606f
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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:)];