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

var targetContentOffset =
rect
Expand Down

0 comments on commit 7d716dd

Please sign in to comment.