h5bp/mothereffinganimatedgif — pull request #27 by bgrins (2012-02-18 02:49:33+00:00)
Title: This makes the drag/drop in the timeline way less flaky

Also fixes https://github.com/h5bp/mothereffinganimatedgif/issues/24.

Wow, I didn't realize how hard it would be to make a little utility to handle this. I decided to break it out into a mini project here: https://github.com/bgrins/nativesortable/blob/master/nativesortable.js. The really tricky part is that images are:
* draggable by default
* still cause the `dragleave` event to fire on the draggable container even *if* you manually turn off draggable.

I don't really know what to say about this whole API... I think what i have is a good starting point for handling this type of interaction. I couldn't really find any good, small, native plugins for handling sortable lists.