saket
06/02/2023, 2:36 AMModifier.pointerInput(key)
in my composable, I need to make sure that the same key
is used for all of them. What could be the reason for this?Zach Klippenstein (he/him) [MOD]
06/02/2023, 2:48 AMsaket
06/02/2023, 3:00 AMModifier
.pointerInput(gesturesEnabled) { … }
.pointerInput(Unit) { … }
and the first pointerInput
wasn't working until I used gesturesEnabled
as the key for the second modifier as wellStylianos Gakis
06/02/2023, 7:18 AMZach Klippenstein (he/him) [MOD]
06/02/2023, 2:41 PMsaket
06/02/2023, 4:07 PMStylianos Gakis
06/02/2023, 4:21 PMDan MacNeil
06/02/2023, 5:52 PMThe pointer input handling block will be cancelled and re-started when pointerInput is recomposed with a different key1.
Maybe that is immediately cancelling the first one.Stylianos Gakis
06/02/2023, 5:57 PM