Browse the Source

Because you write the logic instead of using the readymade components, you can tweak the behavior to the one your app needs. In this example, instead of moving the card inside the drop target's drop() handler, we do it inside the drag source's endDrag() handler. This let us check monitor.didDrop() and revert the drag operation if the card was dropped outside its container.

Write a cool JS library
Make it generic enough
Write README
Create some examples
Spam in Twitter and IRC to promote it
???
PROFIT