Browse Source

playback: enable all gestures in toggleControlsVisible if trackSelectorContainer is displayed

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Pierre SAGASPE 10 years ago
parent
commit
26d2d63cde
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Sources/VLCMovieViewController.m

+ 5 - 0
Sources/VLCMovieViewController.m

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