I’m experiencing an issue where scrolling on a cli...
# compose
d
I’m experiencing an issue where scrolling on a clickable composable (in this case a Card but it happens on buttons as well) makes it non-clickable the next time you try to click it, and after that it is clickable again. I guess it’s somehow related to the scroll+ripple bugfix included in beta08, but not what I want here. The card is wrapped in a Column that is not scrollable if that matters, and it’s only the banner that is written in Compose. Is there anything I can do?
a
@matvei do you have any ideas?
m
Hm, not sure, but it looks like we don't properly cleanup if cancelled? idk. cc @Louis Pullen-Freilich [G] for the ripple stuff that might be related
Just tested a small local demo with clikcable item with ripple in the lazy column and it works fine. You you please post your code here as well, Christopher?
Also, it seems like you are in beta08? Could you please try beta09 as there was one more fix for ripples in there
d
Yeah, I just upgraded to beta09 and can confirm that issue is still there. So Im using a ComposeView with this content:
Copy code
Theme
  Column
    Text
    Box
      Card <- this has onClick
        Image
      Text
      ..
Do you need the full code, or are you able to reproduce with this?
m
Oh so the scrolling is done with RecyclerView, not LazyColumn?
d
No, I have a NestedScrollView, but yes, I’m not using LazyColumn. Its only the red banner that is written in Compose 🙂
m
Ok, so if you will have some time to come up with the small repro (similar to one that you listed above, but with NestedScrollView as well and compilable) -- that would greatly help us debug it further
d
Yeah, of course! I’ll get right to it!
🙏 1
There we go! https://github.com/Dambakk/ComposeScrollClickIssue Do you need anything else? Let me know if I can help with anything.
m
No, this is everything we need, thanks a lot for making a repro. I've filed https://issuetracker.google.com/issues/191758125 and we will investigate further!
d
No problem! And thanks for the quick reply!
Btw, @matvei, do you think this issue is in scope to be fixed before compose hits stable?
m
I don't have a good answer for this yet, sorry 🙂 We're still yet to tackle this, so the complexity is unknown, stay tuned
😊 1
d
Wow, merged already? 😮 Thats impressive, well done you guys! 👏 Does that mean it will be available in the next release, or do you do some sort of scheduling for these things?
m
Should be available in the future rc02 🙂