浏览代码

remove limit double tap video

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 年之前
父节点
当前提交
996a5228a1
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

+ 2 - 5
iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

@@ -215,11 +215,8 @@ class NCViewerMediaZoom: UIViewController {
     @objc func didDoubleTapWith(gestureRecognizer: UITapGestureRecognizer) {
         
         if detailView.isShow() { return }
-        
-        // NO ZOOM for Audio / Video
-        if (metadata.classFile == NCCommunicationCommon.typeClassFile.video.rawValue || metadata.classFile == NCCommunicationCommon.typeClassFile.audio.rawValue) && playerToolBar.isShow() {
-            return
-        }
+        // NO ZOOM for Audio
+        if metadata.classFile == NCCommunicationCommon.typeClassFile.audio.rawValue { return }
         
         let pointInView = gestureRecognizer.location(in: self.imageVideoContainer)
         var newZoomScale = self.scrollView.maximumZoomScale