Open timknapp-qs opened 2 years ago
Thanks for the kind words, @timknapp-qs. And thanks for the very clear reproduction of the issue you're experiencing. My first thought upon seeing this is that DraxScrollView
needs to honor the scroll position of its parent DraxScrollView
, the same way that regular DraxView
s do. Given that DraxScrollView
is implemented via another DraxView
itself, I'm a little surprised that it is not already doing so, but I am sure there is a reason for it. Unfortunately I do not and likely will not have time to dive into this soon. I am disappointed by the current state of the library, but I have not been able to afford the energy to put any serious work into it for a while now. I am open to reviewing and accepting PRs if other folks have the bandwidth to fix this.
I have labeled this issue as a bug, but I have also labeled it as an enhancement because it occurs to me that an X/Y-scrolling DraxScrollView
could also be useful.
Thanks @lafiosca for the response! At some point I might be able to dive into the code if my boss allows it haha. Good luck with everything!
Hi @lafiosca. First of all, I would like to say that I love the library. Great work! I have run into a very specific issue. I need to be able to scroll vertically and also scroll horizontally. And I would like to have autoscrolling so I use your
DraxScrollView
as opposed toScrollView
. However, the nestedDraxScrollView
with thehorizontal={true}
prop causes some unwanted behavior. The behavior is this: A receivingDraxView
does not receive properly if the screen has been scrolled down vertically. The receiving area is pushed down (no longer inside the DraxView) in proportion to how far the screen has been scrolled. See attachments. This happens on both iOS and Android. In this code, thereceivingStyle
changes the background color to blue when an item enters theDraxView
. The topDraxView
words fine, but the one at the bottom that you have to scroll down to does not. If I change the nestedDraxScrollView
to aScrollView
then the drop area works as expected but then I lose the autoscroll. I hope this all makes sense! Let me know if it is not clear. Thanks!https://user-images.githubusercontent.com/78120827/165841777-437ac87c-897a-480a-bc81-a1016c8c8837.MP4