marinofaggiana 4 lat temu
rodzic
commit
df50ff9d8b

+ 1 - 1
iOSClient/Viewer/NCViewerImage/NCViewerImagePageContainer.swift

@@ -363,11 +363,11 @@ extension NCViewerImagePageContainer: UIPageViewControllerDelegate, UIPageViewCo
     func pageViewController(_ pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [UIViewController], transitionCompleted completed: Bool) {
         
         if (completed && self.nextIndex != nil) {
+            
             previousViewControllers.forEach { vc in
                 let viewerImageZoom = vc as! NCViewerImageZoom
                 viewerImageZoom.scrollView.zoomScale = viewerImageZoom.scrollView.minimumZoomScale
             }
-
             currentIndex = nextIndex!
         }