Explorar o código

playback: enable all gestures in toggleControlsVisible if trackSelectorContainer is displayed

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Pierre SAGASPE %!s(int64=10) %!d(string=hai) anos
pai
achega
26d2d63cde
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Sources/VLCMovieViewController.m

+ 5 - 0
Sources/VLCMovieViewController.m

@@ -1207,6 +1207,11 @@ static inline NSArray * RemoteCommandCenterCommandsToHandle(MPRemoteCommandCente
 
 - (void)toggleControlsVisible
 {
+    if (!_trackSelectorContainer.hidden) {
+        for (UIGestureRecognizer *recognizer in self.view.gestureRecognizers)
+            [recognizer setEnabled:YES];
+    }
+
     if (_controlsHidden && !_videoFiltersHidden)
         _videoFiltersHidden = YES;