diff --git a/Sources/BrightroomUI/Shared/Components/Crop/CropView.swift b/Sources/BrightroomUI/Shared/Components/Crop/CropView.swift index de3df3e6..bc972d3d 100644 --- a/Sources/BrightroomUI/Shared/Components/Crop/CropView.swift +++ b/Sources/BrightroomUI/Shared/Components/Crop/CropView.swift @@ -1283,24 +1283,15 @@ extension UIScrollView { animated: Bool ) { - guard rect.isEmpty == false else { - return - } - func run() { let targetContentSize = rect.size let boundSize = guideSize - // targetContentSize.widthが0っぽい - let minXScale = boundSize.width / targetContentSize.width let minYScale = boundSize.height / targetContentSize.height let targetScale = min(minXScale, minYScale) - print("###", rect, guideSize, minXScale, minYScale, minimumZoomScale, maximumZoomScale, layer.position, layer.frame) -// if targetScale <= maximumZoomScale, targetScale >= minimumZoomScale { - setZoomScale(targetScale, animated: false) -// } + setZoomScale(targetScale, animated: false) var targetContentOffset = rect