DragSortRecycler icon indicating copy to clipboard operation
DragSortRecycler copied to clipboard

Faded item stuck at drop point after draggning

Open adamro opened this issue 9 years ago • 8 comments

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?

adamro avatar May 14 '15 14:05 adamro

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

emileb avatar May 20 '15 12:05 emileb

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

riyaz942 avatar Jun 17 '15 10:06 riyaz942

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

emileb avatar Jun 17 '15 10:06 emileb

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.

riyaz942 avatar Jun 17 '15 11:06 riyaz942

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

emileb avatar Jun 17 '15 11:06 emileb

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.

riyaz942 avatar Jun 17 '15 11:06 riyaz942

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.

azizimusa avatar Jul 08 '15 02:07 azizimusa

Unable remove press effect on click on another item.

RajeshJadi avatar Jan 05 '17 07:01 RajeshJadi