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

+ 1 - 3
iOSClient/Viewer/NCViewerImage/NCViewerImageZoom.swift

@@ -167,9 +167,7 @@ class NCViewerImageZoom: UIViewController {
         case .changed:
             
             target.center = CGPoint(x: imageViewCenter!.x, y: imageViewCenter!.y + currentLocation.y)
-            
-            print(currentLocation.y)
-            detailViewTopConstraint.constant = -currentLocation.y
+            detailView.frame.origin.y = imageViewCenter!.y
             
             // DISMISS
             if target.center.y > view.center.y + panDistanceClose {