HTML5 App | Setting Standards

CAT | Drag and Drop

May/10

2

HTML5 Drag and Drop

From the HTML5 Spec,

“On a visual medium with a pointing device, a drag operation could be the default action of a mousedown event that is followed by a series of mousemoveevents, and the drop could be triggered by the mouse being released.

On media without a pointing device, the user would probably have to explicitly indicate his intention to perform a drag-and-drop operation, stating what he wishes to drag and what he wishes to drop, respectively.

However it is implemented, drag-and-drop operations must have a starting point (e.g. where the mouse was clicked, or the start of the selection or element that was selected for the drag), may have any number of intermediate steps (elements that the mouse moves over during a drag, or elements that the user picks as possible drop points as he cycles through possibilities), and must either have an end point (the element above which the mouse button was released, or the element that was finally selected), or be canceled. The end point must be the last element selected as a possible drop point before the drop occurs (so if the operation is not canceled, there must be at least one element in the middle step).”

HTML5 Drag and Drop

Theme Design by devolux.nh2.me