marinofaggiana 3 年之前
父节点
当前提交
6f477ebacf
共有 1 个文件被更改,包括 6 次插入8 次删除
  1. 6 8
      iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

+ 6 - 8
iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

@@ -102,13 +102,7 @@ class NCViewerMediaZoom: UIViewController {
             statusLabel.text = ""
         }
         
-        var heightMap = (view.bounds.height / 3)
-        if view.bounds.width < view.bounds.height {
-            heightMap = (view.bounds.width / 3)
-        }
-        
         detailViewConstraint.constant = 0
-        detailView.update(metadata: metadata, image: image, heightMap: heightMap)
         detailView.hide()
     }
     
@@ -191,8 +185,12 @@ class NCViewerMediaZoom: UIViewController {
         
         case .began:
             
-            print("began")
-            
+            var heightMap = (view.bounds.height / 3)
+            if view.bounds.width < view.bounds.height {
+                heightMap = (view.bounds.width / 3)
+            }
+            detailView.update(metadata: metadata, image: image, heightMap: heightMap)
+
         case .ended:
             
             if detailView.isShow() {