Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Swappable returns a boolean for saying if the swap occured or not #381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mr
Copy link

@mr mr commented Jul 13, 2016

I'm not sure if this is actually useful for anyone, but in my app it was useful to be able to have a drag and drop interface where some elements could not be dragged below a certain point. I changed Swappable to return a boolean which says if the swap actually happened. If it doesn't, it prevents the animation from playing. This prevents the animations from freaking out when you drag over something that you can't drag to.

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

Successfully merging this pull request may close these issues.

1 participant