How to disable multi touch on compose, I have issu...
# compose
a
How to disable multi touch on compose, I have issue user click two items in same row/column I'm use
Copy code
fun Modifier.disableSplitMotionEvents() =
  pointerInput(Unit) {
    coroutineScope {
      var currentId: Long = -1L
      awaitPointerEventScope {
        while (true) {
          awaitPointerEvent(PointerEventPass.Initial).changes.forEach { pointerInfo ->
            when {
              pointerInfo.pressed && currentId == -1L -> currentId = pointerInfo.id.value
              pointerInfo.pressed.not() && currentId == pointerInfo.id.value -> currentId = -1
              pointerInfo.id.value != currentId && currentId != -1L -> pointerInfo.consume()
              else -> Unit
            }
          }
        }
      }
    }
  }
but not work
It's not work with fast click
Copy code
<item name="android:splitMotionEvents">false</item>
<item name="android:windowEnableSplitTouch">false</item>
Also, these lines are not working.
z
I don’t think there’s any simple way to do this, I’d file a feature request.
🙌 1