react-native-sortable-listview icon indicating copy to clipboard operation
react-native-sortable-listview copied to clipboard

On iOS, scrolling while sorting does not work well.

Open chetstone opened this issue 6 years ago • 9 comments

On iOS, when trying to drag an item from the middle of a long list to the top or bottom, the list does not scroll, or scrolls extremely slowly, so that you can't get it where you want. Android works better.

This is demonstrated in the Sortable example app.

This issue was originally documented in Issue #64, which is closed now.

chetstone avatar Aug 08 '17 23:08 chetstone

v0.2.6 I have same issue.

rskull avatar Sep 27 '17 08:09 rskull

set limitScrolling as a workaround

nihgwu avatar Sep 27 '17 09:09 nihgwu

I have same issue. limitScrolling didnt work for me.

izabelavmelo avatar Oct 16 '17 12:10 izabelavmelo

FWIW we've just encountered the same issue and we noticed that passing animated: false to scrollTo here made things a little better. I believe the issue is because we're calling scrollTo several times without giving time to actually do the scrolling, (since it's animated, it should take a while until it gets to a certain scrolling speed, but then we have already issued a new scrollTo command, halting the previous one).

I'm not sure this is the same issue described here, or if that's actually the cause, but that was my experience.

Hope it helps!

duailibe avatar Oct 17 '17 18:10 duailibe

Does anyone know if this is being fixed? I tried out the suggestion by @duailibe and it made a big difference. Is this just a temporary fix tho? Is it good enough to create a pull request for?

matuszeg avatar Oct 24 '17 00:10 matuszeg

I created this https://github.com/deanmcpherson/react-native-sortable-listview/pull/117 I have no idea if they will take it, because it i do not think it is a long term solution, but I figured it couldnt hurt and did not take very long to do.

matuszeg avatar Oct 24 '17 00:10 matuszeg

v0.2.6 I have same issue too.

cx5168 avatar Nov 28 '17 02:11 cx5168

@cx5168 https://github.com/deanmcpherson/react-native-sortable-listview#unreleased can you give disableAnimatedScrolling a try?

nihgwu avatar Nov 28 '17 03:11 nihgwu

@nihgwu @matuszeg Thank you very much. I used disableAnimatedScrolling(set it to true) to solve the problem.

cx5168 avatar Nov 28 '17 03:11 cx5168