Draggable Conditional or Reverse revert
I've just begun exploring this idea, but I thought I would ping the group to see if anyone has implemented this before.
There are two possible solutions that would be acceptable.
The first is that a draggable 'revert's to its original position when not dropped on a valid droppable, but that does not revert if dropped on a valid droppable. My idea is to identify an event where the revert option can be changed after the mouseup but before the revert animation begins. At this point I haven't found one yet.
The second is harder, but would look cool. A draggable that reverts as normal when dropped outside of a droppable, i.e. the cloned helper animates back to its original position. However, when dropped on a valid droppable, the original position animates towards the cloned helper. My idea is to identify some event that (again) happens after mouseup, but before the revert animation begins and simply swap the absolute positioning of the two elements and let the animation happen as normal.
I apoligize if I am not describing this well.
As I'm proof reading this, I think my only option might be to turn revert off and handle the animation myself (in both directions) during the 'stop' callback.
Cliff
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ