How do I cancel a drag event?
Finishing a drag
This event will fire if the drag was successful or if it was cancelled. However, you can use the dropEffect property to determine which drop operation occurred. If the dropEffect property has the value none during a dragend , then the drag was cancelled.
What is the difference between drag and drop?
"Drag" means placing the cursor over the icon of an item, pressing the left (or sometimes right) mouse button to highlight it, and while keeping the button depressed, moving the selected item across the screen. "Drop" means releasing the mouse button when the destination is reached.
How drag and drop works?
Move the pointer to the object. Press, and hold down, the button on the mouse or other pointing device, to "grab" the object. "Drag" the object to the desired location by moving the pointer to this one. "Drop" the object by releasing the button.