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 9d5f919 commit d847b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BrightroomUI/Shared/Components/Crop/CropView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ extension UIScrollView {
let minXScale = boundSize.width / targetContentSize.width
let minYScale = boundSize.height / targetContentSize.height
let targetScale = min(minXScale, minYScale)
if !targetScale.isNaN {
if !targetScale.isNaN, !layer.position.x.isNaN, !layer.position.y.isNaN {
setZoomScale(targetScale, animated: false)
}

Expand Down

0 comments on commit d847b34

Please sign in to comment.