drag to move
drag handle to move
drag to move
vertical constraint
drag to move
horizontal constraint
drag to move
contrained to region
drag to move
exaggerated drag threshold
drag to move
absolutely positioned, constrained vertically and within visible area
Nothing novel going on here; just a basic cross-browser dragging library. Other examples, namely drag & drop sorting, build upon it.
FIXME: IE & Firefox, while dragging, if you drag outside the browser window and then release the mouse button, the mouseup event is lost. Chaos ensues.
Of the browsers I've tested, only Safari does the right thing and continues generating events up until the mouse button is released.
FIXME: IE6, element jogs left as dragging starts, but gets corrected on the following mousemove event. The distance jogged is exactly the same as the size of the left margin. This is most obvious on the vertical constraint example where no correction happens because the vertical constraint is based on the current x-offset. That's a good clue as to what's going on. Also, once you've dragged an element it never suffers from this jog again.
FIXME: dragging is funky on position: fixed
elements. Don't hold your breath waiting for this to be
resolved
"drag a copy" if dragging while holding down Alt (PC) or Option (Mac)
Pressing ESC or performing a chord-click should cancel the drag (returning the element to its original position)
demonstrate a constraint shaped like a circle
See if it works inside iFrames. See if it works inside scrollable elements.
While dragging, it should automatically scroll more of the document into view as you near an edge.
deal with absolutely positioned elements that are positioned relative to bottom and/or right instead of top and left. Currently, dragging an element "converts" it to a position relative to the top-left of the window. This may or may not be desired. Example: a vertical drag only element docked to the right side of the window loses its dockedness once dragged.
Workaround: register a listener for 'ondragend' and convert it back to bottom, right, or bottom-right positioning.
option to "move to top" even after drag has ended
See if dragging between browser windows is possible. Doubt it, but it's worth trying.