marcojakob / dart-dnd

Drag and Drop for Dart web apps with mouse and touch support.
https://code.makery.ch/library/dart-drag-and-drop/
MIT License
135 stars 91 forks source link

Draggable.destroy should call remove() on avatar #17

Closed tomconnell-wf closed 7 years ago

tomconnell-wf commented 7 years ago

If Draggable.destroy is called while dragging, it will result in the drag avatar sticking around in the location is was at when destroy was called. It seems like the destroy method should just call remove() on avatarHandler.avatar.

marcojakob commented 7 years ago

Would you mind providing a pull request with a fix?

tomconnell-wf commented 7 years ago

I think I could make that happen.

marcojakob commented 7 years ago

Fixed by #18.