Fix widget resize handle hitbox

This commit is contained in:
MM20 2024-04-19 12:51:30 +02:00
parent d4759339cf
commit 64002c9f38
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -104,6 +104,7 @@ fun DragResizeHandle(
Box(
Modifier
.align(Alignment.CenterEnd)
.offset(x = 64.dp)
.draggable(
state = horizontalDragState,
orientation = Orientation.Horizontal,
@ -113,7 +114,6 @@ fun DragResizeHandle(
startDragImmediately = true,
)
.requiredSize(128.dp)
.offset(x = 64.dp)
) {
Icon(
modifier = Modifier
@ -157,6 +157,7 @@ fun DragResizeHandle(
Box(
Modifier
.align(Alignment.BottomCenter)
.offset(y = 64.dp)
.draggable(
state = verticalDragState,
orientation = Orientation.Vertical,
@ -166,7 +167,6 @@ fun DragResizeHandle(
startDragImmediately = true,
)
.requiredSize(128.dp)
.offset(y = 64.dp)
) {
Icon(
modifier = Modifier