Universeorange.com/Docs/
ready(() => {
_('_').debug('hello world!');
const debug = select('.debug');
debug.css('position', 'absolute');
debug.css('top', 'middle');
debug.css('left', 'center');
debug.drag(debug.select('.head'), debug);
});
Drag, makes an element draggable. Attributes: handle
, subject
and callback
.
handle
: the element which handles the move, the .head
class of debug in this case.
subject
: the element which should be draggable.
callback
: script that should run on mouseMove (start dragging).
Last modified: 2021-06-07
© 2021 universeorange.com