https://kotlinlang.org logo
Title
n

Norbi

07/11/2022, 3:52 PM
Hello, Do you have any info or experience about the current status of "gestures" support in Compose/Desktop? https://developer.android.com/jetpack/compose/gestures#multitouch
e

ephemient

07/12/2022, 6:14 AM
there's no multitouch support in Swing, so unless CfD changes the underlying framework I'm not sure how that could work
:tnx: 1
n

Norbi

07/12/2022, 6:42 AM
@ephemient Thanks. What about simple gestures like drag/swipe? Are they supported on desktop?
g

gildor

07/13/2022, 7:19 AM
standard modifiers from androidx.compose.foundation.gestures should work
:thank-you: 2
e

ephemient

07/13/2022, 7:47 AM
Modifier.draggable
and
PointerInputScope.detectTransformGestures
are both in common. I haven't tried but I expect
detectTransformGestures
may provide you with panning but not rotation and zoom on desktop: https://github.com/JetBrains/compose-jb/issues/1953
:thank-you: 1
d

Dragos Rachieru

07/14/2022, 12:47 PM
I used draggable in my app to scroll using touchscreen, it works well
:thank-you: 1