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 {