Hello! I'm looking for functionality like this: <h...
# compose-desktop
k
Hello! I'm looking for functionality like this: https://developer.android.com/jetpack/compose/gestures#multitouch But in Desktop Compose, to handle Zoom, Pan, Rotate, etc, using a mouse input. Any suggestions? Thanks!
👀 1
Ok, so I've found this info: https://github.com/JetBrains/compose-jb/blob/master/tutorials/Mouse_Events/README.md But it hasn't given me mouse wheel detection for zoom, or mouse drag. So a bit more looking required. I imagine then that these events when detected, can be applied to the Modifier.transformable() or something?
Or apply the detected actions to
Modifier.graphicsLayer()
?
Also looking up
Modifier.pointerInput()
Still getting the hang of text formatting in Slack!
I need to hit the sack, but this looks promising. The only problem is that it only shows up in the Google search result, not on the actual page! "Mouse event listeners - compose-jb/README.md at master ... https://github.com › JetBrains › blob › master › tutorials If you need more information about events there is an available raw AWT mouse event object in mouseEvent property of PointerEvent." So I might need to look up the AWT stuff. Cheers!