Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shima11 committed Apr 22, 2024
1 parent 0188c9e commit 9d5f919
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/BrightroomUI/Shared/Components/Crop/CropView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1291,8 +1291,9 @@ extension UIScrollView {
let minXScale = boundSize.width / targetContentSize.width
let minYScale = boundSize.height / targetContentSize.height
let targetScale = min(minXScale, minYScale)

setZoomScale(targetScale, animated: false)
if !targetScale.isNaN {
setZoomScale(targetScale, animated: false)
}

var targetContentOffset =
rect
Expand Down

0 comments on commit 9d5f919

Please sign in to comment.