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

Pressing on an item after scrolling down in NestableDraggableFlatList causes the item to move down and up again.

Open maroparo opened this issue 2 years ago • 3 comments

Describe the bug When using the NestableDraggableFlatList while having a few lists rendered, when scrolling down and then starting to drag an item, a weird behaviour appears. The item that is being dragged moves down one item and then up again.

To Reproduce

  • I took the code from the example snack and put it in a screen in my app (I'm using react native navigation). No other additional code in that specific screen.
  • I increased the number of the items per list to 20.
  • I start scrolling down and then randomly long press an item. Though it doesn't show in the recording, there is only one gesture happening, a simple long press on item 13. No drag no nothing.
  • The glitch happens.

https://github.com/computerjazz/react-native-draggable-flatlist/assets/27883470/fbca0afd-b25f-4f39-8a5f-4b302e58c9d0

Platform & Dependencies

  • Platform: Both Ios (iOS 17.0) and Android
  • "react-native-draggable-flatlist": "^4.0.1"
  • "@react-navigation/core": "^6.2.1"
  • "react-native": "0.72.5",
  • "react-native-reanimated": "^3.3.0"
  • "react-native-modal-datetime-picker": "^17.1.0"

maroparo avatar Oct 20 '23 22:10 maroparo

I've fixed it on my side by doing this : https://github.com/computerjazz/react-native-draggable-flatlist/pull/514

ersefuril avatar Dec 11 '23 14:12 ersefuril

Is this being looked at? Also running into the same issue.

jathnamas avatar Feb 22 '24 19:02 jathnamas