Fix widget resize handle hitbox
This commit is contained in:
parent
d4759339cf
commit
64002c9f38
@ -104,6 +104,7 @@ fun DragResizeHandle(
|
|||||||
Box(
|
Box(
|
||||||
Modifier
|
Modifier
|
||||||
.align(Alignment.CenterEnd)
|
.align(Alignment.CenterEnd)
|
||||||
|
.offset(x = 64.dp)
|
||||||
.draggable(
|
.draggable(
|
||||||
state = horizontalDragState,
|
state = horizontalDragState,
|
||||||
orientation = Orientation.Horizontal,
|
orientation = Orientation.Horizontal,
|
||||||
@ -113,7 +114,6 @@ fun DragResizeHandle(
|
|||||||
startDragImmediately = true,
|
startDragImmediately = true,
|
||||||
)
|
)
|
||||||
.requiredSize(128.dp)
|
.requiredSize(128.dp)
|
||||||
.offset(x = 64.dp)
|
|
||||||
) {
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
@ -157,6 +157,7 @@ fun DragResizeHandle(
|
|||||||
Box(
|
Box(
|
||||||
Modifier
|
Modifier
|
||||||
.align(Alignment.BottomCenter)
|
.align(Alignment.BottomCenter)
|
||||||
|
.offset(y = 64.dp)
|
||||||
.draggable(
|
.draggable(
|
||||||
state = verticalDragState,
|
state = verticalDragState,
|
||||||
orientation = Orientation.Vertical,
|
orientation = Orientation.Vertical,
|
||||||
@ -166,7 +167,6 @@ fun DragResizeHandle(
|
|||||||
startDragImmediately = true,
|
startDragImmediately = true,
|
||||||
)
|
)
|
||||||
.requiredSize(128.dp)
|
.requiredSize(128.dp)
|
||||||
.offset(y = 64.dp)
|
|
||||||
) {
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user