Home > Blockchain >  Is there a browser event when a drag operation is cancelled via the Escape key?
Is there a browser event when a drag operation is cancelled via the Escape key?

Time:11-18

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:

dragend

The dragend event is fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).

  • Related