Hey guys, is there equivalent of splitMotionEvents from RecyclerView for LazyColumn/Row?
a
Adam Powell
03/21/2022, 2:07 AM
What user facing behavior are you looking to implement?
f
FunkyMuse
03/21/2022, 6:49 AM
Disable ability to click two items at once
a
Adam Powell
03/21/2022, 1:24 PM
For what purpose?
I'd rather not add an equivalent input dispatch feature to compose. It was originally added to views for compatibility before MotionEvent splitting was supported at all, as a way to support apps that weren't written to handle multiple inputs at a higher level prior to Android 3.0. I'm curious about the specific use case to see if another approach stands out.
f
FunkyMuse
03/21/2022, 7:34 PM
The user can tap at two items in a list at the same time and for example navigating to a destination can be triggered twice, hence a crash, also a visual feedback would be triggered if a user does that, ripple at two places instead of one
k
K Merle
03/23/2022, 8:42 AM
@FunkyMuse Does fast double-tap on navigation opens same screen twice for you? Possibly adding a missing guard to prevent double-tap navigation would solve this issue?
f
FunkyMuse
03/23/2022, 8:50 AM
This is just one use case, for example twice the API call?
And if the story goes on and on, i have to add debounce to the layers that maybe wouldn’t need that instead of the one that does, i.e the view.