https://kotlinlang.org logo
#compose
Title
# compose
v

vide

09/21/2023, 5:54 PM
More weird bugs! When using
Node
based modifiers, such as
.clickable()
and
.pointerInput()
, pointer events stop working after a
ComposeView
has been detached and reattached to a window. I will see if I can create a minimal repro. Has anyone else encountered this?
z

Zach Klippenstein (he/him) [MOD]

09/21/2023, 5:56 PM
please file a bug
v

vide

09/21/2023, 6:16 PM
I feel like I always have the weirdest use cases and bugs 😅
I'll file later today and see if I can isolate it a bit
gratitude thank you 1
s

shikasd

09/21/2023, 6:58 PM
We might have fixed some of these in 1.6-alpha, btw
v

vide

09/21/2023, 6:59 PM
This is happening on the latest 1.6.0-alpha06
👍 1
MainActivity.kt.cpp
Here's a minimal repro. I'll narrow down the version where it broke.
s

shikasd

09/21/2023, 7:37 PM
No need, reporting the bug should be enough 🙂
v

vide

09/21/2023, 7:50 PM
created one, somehow managed to forget the markdown tickbox again: https://issuetracker.google.com/issues/301477278
It's broken since 1.5.0-alpha02 where
PointerInputModifierNode
etc. were introduced
I will probably just recreate the view on every reattach as a workaround, that seems to work