<Combine detectTapGestures and detectDragGesturesA...
# stackoverflow
u
Combine detectTapGestures and detectDragGesturesAfterLongPress? We need to be able to detect both taps and drag gestures after long press on the same component in Jetpack Compose. To detect taps we can do: Modifier.pointerInput(graphData) { detectTapGestures( ... ) } And to detect drag gestures after long press: Modifier.pointerInput(graphData) { detectDragGesturesAfterLongPress( ... ) } But it is not possible to use both at the same time, since the first detect* will consume the pointer events:...