based on jqDnR © 2007 Brice Burgess <[email protected]>
Licensed under the MIT License.
This version was heavily modified by @gaarf for:
- jQuery 1.4 support
- touch events (works on iOS devices)
- z-index upping
- legibility
if box is a DOM node that should be draggable:
$(box).jqDrag();
if box is a DOM node that should be both draggable and resizable:
$(box).jqDrag(moveHandle).jqResize(resizeHandle);
where moveHandle/resizeHandle are optional DOM elements. if not defined, the whole box will be used as handle.
jqDnRstart
drag/resize operation startsjqDnRend
drag/resize operation endsjqDnRtop
element brought to top (via click or touch) without drag