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 823c099 commit a4dc4e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/BrightroomUI/Shared/Components/Crop/CropView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1291,9 +1291,8 @@ extension UIScrollView {
let minXScale = boundSize.width / targetContentSize.width
let minYScale = boundSize.height / targetContentSize.height
let targetScale = min(minXScale, minYScale)
print("###", targetScale, minimumZoomScale, maximumZoomScale, layer.transform, layer.position, layer.frame)
if !layer.position.x.isNaN, !layer.position.y.isNaN,
targetScale < maximumZoomScale, targetScale > minimumZoomScale {
print("###", targetScale, minimumZoomScale, maximumZoomScale, layer.position, layer.frame)
if targetScale <= maximumZoomScale, targetScale >= minimumZoomScale {
setZoomScale(targetScale, animated: false)
}

Expand Down

0 comments on commit a4dc4e4

Please sign in to comment.