I need to undo the drag-drop preview when a drag operation is cancelled. Need to do this in all cases, when cancelling is done via the Escape key or just by removing the mouse button. I do not want to track keyup and mouseup events but would prefer a event that just reports cancellation of the drag operation.
CodePudding user response:
The dragend event is fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).