react-native-draggable-flatlist icon indicating copy to clipboard operation
react-native-draggable-flatlist copied to clipboard

The delay between onRelease and onDragEnd makes the component feeling unresponsive

Open manelio opened this issue 2 years ago • 1 comments

"react-native-draggable-flatlist": "^3.1.1"
Expo on Android

Everything is working almost perfect. But after dropping an item there's a significant delay (I guess due to animation) in which one is not able to drag nor longpress until animation ends.

My opinion is the list should respond as expected (allowing dragging and long pressing) immediatelly after dropping an item.

I don't know if this is possible. But there's at least any way to fully disable the animation before onDragEnd? or some event receiving data array prior to animation to finalize?

manelio avatar May 04 '22 00:05 manelio

the list needs to know about any layout changes that occur as a result of the new positions, so we can't begin dragging while another animation is still running.

You can speed up those animations if you want by passing in a custom animationConfig prop

computerjazz avatar May 09 '22 16:05 computerjazz