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
Chrimaeon
01/13/2023, 10:11 PM
Haven’t seen this behavior in any app. can you make a screen recording?
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
Chrimaeon
01/13/2023, 10:30 PM
It’s not scrolling vertically because you touch a horizontal nested list and vice-versa
Chrimaeon
01/13/2023, 10:31 PM
The scroll container that receives the initial touch input directs the scroll.
h
Hassaan
01/13/2023, 10:42 PM
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🥲