Drag and Drop - YAHOO.util.DD

Examples

 

Note: click the Disable Logger button to make the drag operation less choppy

Basic Implementation of YAHOO.util.DragDrop

In this implementation of YAHOO.util.DragDrop, we keep track of the position of the clicked element so that we can move it along with cursor during the drag operation, maintaining the relationship between the location of the element and the location of the click. This class also provides a way to define other elements that modify the way the drag operation works.

YAHOO.util.DD
YAHOO.util.DD
YAHOO.util.DD