I have a problem with<https://github.com/mxalbert1...
# compose
s
I have a problem withhttps://github.com/mxalbert1996/Zoomable as it does not respond immediately on Android (while it works on Desktop). I narrowed it down to the effect, that the lamba block given to
Modifier.pointerInput(state)
is executed immediately (when the view is shown) on Compose Multiplatform JVM, but on Android it's only executed after the first interaction. So I always loose one user input. Why is there a different behaviour and how can I fix this?
1
a
That should have been fixed by 1.6.1. Have you tried that?
👍 1
The behavior change was caused by the rework of pointer input in Compose 1.5: https://medium.com/androiddevelopers/improvements-and-changes-to-composes-pointer-input-6026904ac972
👍 1
s
Thanks for the hint. I actually use a older version that I modified a bit to my needs and somehow I missed that change. 👀
I see the fix. Thanks a lot!
👍 1