Hey guys, is there equivalent of splitMotionEvents...
# compose
f
Hey guys, is there equivalent of splitMotionEvents from RecyclerView for LazyColumn/Row?
a
What user facing behavior are you looking to implement?
f
Disable ability to click two items at once
a
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
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
@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
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.
161 Views