how can we prevent unintended touch/scroll on a sc...
# compose
h
how can we prevent unintended touch/scroll on a scrollable row(or LazyRow) in a jetpack compose. In lazyRow, if i slide my finger in ↗️ or ↙️ direction, row scrolls but in spotify to scroll a row, we have to slide our finger perfectly horizontally ➡️, how to achieve that?
c
Haven’t seen this behavior in any app. can you make a screen recording?
h
Have you ever used Spotify?Wait
Screenrecorder-2023-01-14-03-17-31-204.mp4
In this video, you can see how Spotify behaviour is different from the other two apps. If you scroll the row diagonally, the whole screen moves and row doesn’t move at all in Spotify (unlike the other two).
c
It’s not scrolling vertically because you touch a horizontal nested list and vice-versa
The scroll container that receives the initial touch input directs the scroll.
h
for the other two, we can make lazy column composed of lazy rows while i am unable to do it spotify way. May be i am beginner, should focus on basics first🥲
152 Views