Closed xdarkleonx closed 3 years ago
I don't know how soon I'll be able to look into this, but to gather more information first...
As per your comments in #112, this has happened for you in Android API 29 emulator? Have you experienced it in any other environments as well? And does https://github.com/nuclearpasta/react-native-drax-example have this same buggy behavior for you? Thank you.
Video demonstration. Tested on android emulator API 29 and on device - Honor 8S. In both cases there is a bug. This example works fine. React-native-drax-example I didnt test.
I apologize, I’m really not trying to make this difficult; but if the example code is working for you but your own code is not, I think we will need to see a minimally reproduced example of the bad behavior to be able to debug.
I was trying reproduce mistake (here code), but I could not. I can't understand why in my project draxlist work wrong.
Is it possible that in your actual app the DraxProvider is nested underneath something that moves it around? You can think of the provider as an invisible view rectangle that determines the canvas for dragging. As such it should be put as high up in your hierarchy as possible, preferably in a spot where it won’t be changing layout position.
Ok, thanks. It looks like this is a problem on my side, so I am closing the issue.
Good luck. If you learn anything illuminating or discover a bug, please feel free to share here or reopen this issue.
I am using DraxList. When I change orientation (landscape/portrait), draggable item has a wrong behavior. He is jumping ups outside of screen. I think this is happens because position is recalculates wrong when orientation changes.