|
|
|
@ -8,7 +8,7 @@ import androidx.compose.ui.ExperimentalComposeUiApi
|
|
|
|
|
import androidx.compose.ui.Modifier |
|
|
|
|
import androidx.compose.ui.composed |
|
|
|
|
import androidx.compose.ui.geometry.Offset |
|
|
|
|
import androidx.compose.ui.input.pointer.awtCursor |
|
|
|
|
import androidx.compose.ui.input.pointer.PointerIcon |
|
|
|
|
import androidx.compose.ui.input.pointer.pointerIcon |
|
|
|
|
import androidx.compose.ui.input.pointer.pointerMoveFilter |
|
|
|
|
import java.awt.Cursor |
|
|
|
@ -27,7 +27,7 @@ actual fun Modifier.cursorForHorizontalResize(): Modifier = composed {
|
|
|
|
|
onEnter = { isHover = true; true }, |
|
|
|
|
onExit = { isHover = false; true } |
|
|
|
|
).pointerIcon( |
|
|
|
|
awtCursor( |
|
|
|
|
PointerIcon( |
|
|
|
|
if (isHover) { |
|
|
|
|
Cursor(Cursor.E_RESIZE_CURSOR) |
|
|
|
|
} else { |
|
|
|
@ -35,4 +35,4 @@ actual fun Modifier.cursorForHorizontalResize(): Modifier = composed {
|
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|