diff --git a/Source/Pages/Gallery/YPAssetZoomableView.swift b/Source/Pages/Gallery/YPAssetZoomableView.swift index 60cb87147..25e7d66bf 100644 --- a/Source/Pages/Gallery/YPAssetZoomableView.swift +++ b/Source/Pages/Gallery/YPAssetZoomableView.swift @@ -75,6 +75,8 @@ final class YPAssetZoomableView: UIScrollView { strongSelf.videoView.setPreviewImage(preview) strongSelf.setAssetFrame(for: strongSelf.videoView, with: preview) + + strongSelf.squaredZoomScale = strongSelf.calculateSquaredZoomScale() completion() @@ -131,6 +133,8 @@ final class YPAssetZoomableView: UIScrollView { // add update CropInfo after multiple updateCropInfo() } + + strongSelf.squaredZoomScale = strongSelf.calculateSquaredZoomScale() completion(isLowResIntermediaryImage) }