How to detect when the user rise one finger and le...
# compose
a
How to detect when the user rise one finger and left the other one in Jetpack compose ?
f
I think you can use:
Copy code
Modifier.pointerInteropFilter { motionEvent ->  
    when (motionEvent.action) {
        MotionEvent.ACTION_DOWN -> {}
        MotionEvent.ACTION_MOVE -> {}
        MotionEvent.ACTION_UP -> {}
        else ->  false
    }
     true
}
the rest is pretty similar to what we did before compose