Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

LongClick then Drop Issue #54

Open
nyahahawakoko opened this issue Aug 8, 2014 · 0 comments
Open

LongClick then Drop Issue #54

nyahahawakoko opened this issue Aug 8, 2014 · 0 comments

Comments

@nyahahawakoko
Copy link

When I long click on an item, then drop it immediately, it performs an onClick event. In one way or another this might be a bug? I have managed to fix this by changing the return value of DragDropGrid#onTouch(View, MotionEvent), instead returning false directly I changed it with super.onThouchEvent(MotionEvent)

I also noticed that when I will long click on an item near (using the emulator my mouse pointer is about 5-10dip near) the delete view (not intersected with the delete view), then drop it, the item will disappear. I have also managed to fix it by calling the touchMove(event); on the first line of DragDropGrid#touchUp(MotionEvent) method.

I don't know if my fixes were correct, but it managed to fix my issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant