computerjazz / react-native-draggable-flatlist

A drag-and-drop-enabled FlatList for React Native
MIT License
1.95k stars 410 forks source link

Prevent initial scroll jump in NestedDraggableFlatlist #514

Open ersefuril opened 11 months ago

ersefuril commented 11 months ago

There is a small glitch when you try to drag n drop an item after performing an initial scroll. This seems to occurs only in NestedDraggableFlatList. The outer scroll position is not updated after doing a scroll, which causes a "jump". It should fix this issue : https://github.com/computerjazz/react-native-draggable-flatlist/issues/509

The0racle commented 8 months ago

Will this PR be merged? I'm having the same issue and don't want to use patch-package

zhen1007 commented 2 months ago

@ersefuril Your solution doesn't work on my side.

brimby commented 1 month ago

Any chance this is going to be ironed out soon? I definitely see the bug but I haven't tried patching this in yet. I found that as a workaround you can set activationDistance={0}, but this has the unhappy consequence of making nested lists unscrollable unless you drag on a non-list-item element.