emileb / DragSortRecycler

Easily add drag and drop capability to your RecyclerView
Apache License 2.0
109 stars 18 forks source link

Faded item stuck at drop point after draggning #18

Open adamro opened 9 years ago

adamro commented 9 years ago

On random occasions items are "stuck" where you drop them as what seems like an image of the item in the "faded" situation it is (with alpha) when it's dragged. If you scroll after the drop when it happens the RecyclerView and DragSort keeps working as intended but the "image" of the item that was dropped is kept on the same place on the screen.

Did anyone else experience this behavior or have any idea why it happens?

emileb commented 9 years ago

Thanks for the report. Couple of qus: Does the stuck image disappear when you try and drag another item, or does it always remain (with 2 now on the screen)? Does it disapear when you close/reopen the activity? Thanks

riyaz942 commented 9 years ago

I think i might have the same problem as described by adamro but in my case it occurs whenever i tap on the handle, no dragging involved. the faded item gets stuck on the recyclerview and it disappears when i drag another item. This is how it looks screenshot_2015-06-17-15-58-11 custom

and if you scroll the list some items gets stacked like in the image given below

screenshot_2015-06-17-15-58-38 custom

emileb commented 9 years ago

Thanks for the info. So does this only happen if you tap, if you drag it does not get stuck? Thanks

riyaz942 commented 9 years ago

I haven't encountered any bugs while i drag an item and yeah ,it only happens when i tap on it.

hope you fix it soon.

emileb commented 9 years ago

OK It must not be receiving the "UP" event. Have you got a touch listener over the whole list item? If the drag handle is under the listener it might not receive all events

riyaz942 commented 9 years ago

i have a relative layout which has a onclicklistener and a onlongclicklistener and within that layout i put the handle ... but the problem still persists even after i put the handle outside the relativelayout (which contains the listener)

and i have no other ontouchlistener on the item.

azizimusa commented 9 years ago

It also happen to me. When I tap once at viewhandle , the element will stay on screen when scrolling to top and bottom. This does not happen during dragging. Only tap once. The viewhandle should support Tap once again to cancel the effect.

RajeshJadi commented 7 years ago

Unable remove press effect on click on another item.