Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shima11 committed Apr 23, 2024
1 parent d847b34 commit 823c099
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/BrightroomUI/Shared/Components/Crop/CropView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,9 @@ extension UIScrollView {
let minXScale = boundSize.width / targetContentSize.width
let minYScale = boundSize.height / targetContentSize.height
let targetScale = min(minXScale, minYScale)
if !targetScale.isNaN, !layer.position.x.isNaN, !layer.position.y.isNaN {
print("###", targetScale, minimumZoomScale, maximumZoomScale, layer.transform, layer.position, layer.frame)
if !layer.position.x.isNaN, !layer.position.y.isNaN,
targetScale < maximumZoomScale, targetScale > minimumZoomScale {
setZoomScale(targetScale, animated: false)
}

Expand Down

0 comments on commit 823c099

Please sign in to comment.