Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle missed drag? #1358

Closed
dels07 opened this issue Aug 16, 2018 · 3 comments
Closed

Handle missed drag? #1358

dels07 opened this issue Aug 16, 2018 · 3 comments

Comments

@dels07
Copy link

dels07 commented Aug 16, 2018

Currently I'm having problem to know which event or properties I can use to detect missed drag. The problem is when the item dragged and it missed drop target, the item will drop to the last item. I want to handle it so when it missed the drop target it will return to original index.

This is the example screenshot of what happening when dragging:

screenshot

Hover between two images and drop it in the center.

@ernsheong
Copy link

Could you have handled this in an onUpdate callback?

@dels07
Copy link
Author

dels07 commented Aug 29, 2018

@ernsheong how supposed I know the item get missed? Checking it's position to be the last? What if an item actually mean to be sort to the last?

@owen-m1
Copy link
Member

owen-m1 commented Dec 16, 2018

Solved in 1.8.0-rc1.

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

No branches or pull requests

3 participants