Skip to content
This repository was archived by the owner on Jul 1, 2022. It is now read-only.

Commit c6c09fc

Browse files
Fix issue #217
1 parent e5f476d commit c6c09fc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ALCameraViewController/Views/CropOverlay.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,17 @@ internal class CropOverlay: UIView {
199199
}
200200
}
201201
}
202+
203+
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
204+
let view = super.hitTest(point, with: event)
205+
206+
if !isMovable && isResizable && view != nil {
207+
let isButton = cornerButtons.reduce(false) { $1.hitTest(convert(point, to: $1), with: event) != nil || $0 }
208+
if !isButton {
209+
return nil
210+
}
211+
}
212+
213+
return view
214+
}
202215
}

0 commit comments

Comments
 (0)