The drag-and-drop functionality is a powerful feature of Raphaël. In particular, we are offered a good deal of control over
drag events, which affords us the ability to create more usable applications.
drag method of an element has the following syntax:
Element.drag( onmove, onstart, onend, [mcontext], [scontext], [econtext] )
onend functions are callback functions invoked during the life cycle of a dragged element, while
econtext define the
this variable in the scope of these functions (defaulting to the element that is being dragged).
onstart event handler is called when element dragging is first initiated. It ...