After some recent Jetpack Compose updates, there s...
# compose-android
s
After some recent Jetpack Compose updates, there seems to be a behavior change with AndroidView's touch handling. Previously, if you had an AndroidView(without any click listeners or pointerInput modifiers) on top of a Compose layout, touch events would pass through it to the elements below. Now they don't, even when trying to disable focus on the Android View. Has anyone else noticed this change? I'm using the latest compose bom-alpha 2024.10.01.
I initially suspected the issue was specific to AndroidExternalSurface, but I was wrong. I tested with various Android views and none of them pass through touch events anymore. I have an old video showing how it used to work - with a full-screen overlay that allowed clicks and scrolls to pass through to the content underneath without any issues.
dual_filter_blur.mp4
s
Please file an issue for this change, this sounds like a bug to me
s
Further investigation reveals that the touch event blocking occurs when AndroidView is wrapped in ANY of the standard layout composables (Box, Row, or Column).