Avoid crop handle overlapping FAB
Cap the default crop handle position at the FAB-safe home position so square displays do not place it behind the action button.
This commit is contained in:
@@ -208,7 +208,7 @@ class DetectorView : View {
|
||||
val mn = min(center.x, center.y) * .8f
|
||||
handlePos.set(
|
||||
(center.x + mn).roundToInt(),
|
||||
(center.y + mn).roundToInt()
|
||||
min((center.y + mn).roundToInt(), handleHome.y)
|
||||
)
|
||||
handleActive = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user