瀏覽代碼

playback: enable all gestures in toggleControlsVisible if trackSelectorContainer is displayed

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Pierre SAGASPE 10 年之前
父節點
當前提交
26d2d63cde
共有 1 個文件被更改,包括 5 次插入0 次删除
  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;