Drag and Drop - YAHOO.util.DD

Examples

Custom Click Validator Implementation and onInvalidDrop

In this example, we override clickValidator to provide custom logic for determining if the initial mousedown should initiate a drag. A drag is initiated only if the mousedown happens inside of the circle.
In addition, the circle snaps back to its inital position if not dropped on a target. This is done by overriding the onInvalidDrop method.

The logger is paused for performance reasons. Click "Resume" to re-enable it.

DD
DDTarget