https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
m

mohamed rejeb

03/04/2024, 8:21 AM
Is there a way to access an API to change the cursor for Compose Desktop other than the
pointerHoverIcon
modifier? In some cases, it's not the best choice, like in the SplitPane, when I'm dragging the cursor shouldn't change back to default even if I'm not hovering over the handle, I tried to change it with awt using
window.cursor
but it doesn't work.
i

Ivan Matkov

03/04/2024, 8:34 AM
It looks like other ways are internal. You can try to use
pointerHoverIcon(icon, overrideDescendants = true)
on some base element during dragging
thank you color 1
m

mohamed rejeb

03/04/2024, 9:46 AM
I think this should fix the issue, Thanks!
👍 1
2 Views