Sfoglia il codice sorgente

playback: enable all gestures in toggleControlsVisible if trackSelectorContainer is displayed

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Pierre SAGASPE 10 anni fa
parent
commit
26d2d63cde
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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;