kutlugsahin / smooth-dnd

drag and drop library for javascript
MIT License
599 stars 147 forks source link

Functionality to cancel drag #44

Open davestewart opened 5 years ago

davestewart commented 5 years ago

I'm probably going to use the drop-outside functionality soon, but because of that, it's now not possible to "cancel" a drag by just releasing outside.

As such:

It would be really useful to have a way to programatically end the drag; this is done most usually via the escape key.

It seems that the native drag and drop respects the Escape key:

However Smooth DnD does not:

Anyway. For your consideration.