fix: set scaling correctly when switching between apps

This commit was merged in pull request #20.
This commit is contained in:
2026-07-16 17:04:47 +02:00
parent 0f1dc88b87
commit e94e94f173
+9
View File
@@ -676,6 +676,15 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate {
if scrollingCollectionView.isHidden == true || mode != .scroll
|| scrollingCollectionView.contentSize == .zero
{
if metadata == nil { return }
imageLoader.loadImage(
archiveURL: getArchiveURL(progress.v),
filename: getImagePath(progress),
scaling: .scaleAspectFit,
screenSize: UIScreen.main.bounds.size
) { image in
self.imageView.image = image
}
return
}
if !hasSetContentOffset, scrollPos != nil {