DragAndDropSort icon indicating copy to clipboard operation
DragAndDropSort copied to clipboard

Listview jagging on fast scroll

Open PaulsonM opened this issue 5 years ago • 4 comments

I have successfully implemented this drag and drop in Xamarin.Forms listview but when I scroll quite fast (than normal slow scroll), it is jaggin/ startling. But if I use the listiew normally without this drag & drop (after removing it), the listview scrolls fine on fast scroll like I did previously. There seems to be clear problem with this drag & drop implementation I believe..

This occurs in all different android versions I tried

Can anyone assist?

PaulsonM avatar Apr 04 '19 07:04 PaulsonM

Jaggin/ startling means.. in other words the whole listview shakes

By the way, my listview drag&drop activates/enables once page appears, no enable button

PaulsonM avatar Apr 04 '19 07:04 PaulsonM

Hello,

I'm not sure if you're still in need, but I've had the same issues and it was bugging me since. I've found the fix though (atleast, it works for me)

Original code: anim.SetDuration(100); anim.Start(); return correctedPosition;

However, it never stops. Replace it with: anim.SetDuration(100); anim.Start(); anim.End(); return correctedPosition;

Enjoy

Wilcoo1 avatar May 23 '19 10:05 Wilcoo1

Oh really..! Thanks for posting the fix,.. Good work

PaulsonM avatar May 23 '19 12:05 PaulsonM

Hi there guys, for those of you who experience issues with ListView with your swipe very fast while dragging which results in 2 items being on top of each other, Wilcoo1's fix also resolve that issue. Might be worth making a pull request.

Perry89 avatar Sep 05 '19 11:09 Perry89