programguide icon indicating copy to clipboard operation
programguide copied to clipboard

How to config only scroll one direction when touch down?

Open kzjn10 opened this issue 2 years ago • 6 comments

Thanks @oleksandrbalan for awesome library, it save my time.

I have many question, please help me:

  • Config scroll one direction when touch down (horizontal or vertical instead of free scroll)
  • Animation item when scroll horizontal

Thanks,

image

kzjn10 avatar Aug 02 '23 08:08 kzjn10

Thx! And sorry for the late reply.

  • I think you could alter behavior of the lazyLayoutPointerInput() to "predict" where drag starts based on several initial events and then "lock" the direction to vertical or horizontal.
  • I have seen that in your fork you have achieved some kind of animation with start padding based on viewport position. However now I am not sure about a better approach to improve layout performance 🤷‍♂️

oleksandrbalan avatar Aug 29 '23 19:08 oleksandrbalan

Thanks for your answer. I also try to find out the best solution for this.

kzjn10 avatar Aug 31 '23 15:08 kzjn10

@oleksandrbalan any update on this.

rahat14 avatar Jan 11 '24 21:01 rahat14

You are asking about scrolling in one direction? I haven't looked on this yet 😞

Also may I ask you to describe the desired behavior? Or maybe you have some video or other app example?

oleksandrbalan avatar Jan 12 '24 17:01 oleksandrbalan

@oleksandrbalan check this library

rahat14 avatar Jan 14 '24 10:01 rahat14

@rahat14 Could you please add a link to the library?

oleksandrbalan avatar Jan 19 '24 17:01 oleksandrbalan