DragDropInteractions
DragDropInteractions copied to clipboard
Click reveals draggable area
It's hard for click and draggable events to co-exist. a simple click attempts to trigger draggable area. delay and distance parameters dont work.
$('body').mousedown(function() { var down; down = true; }); $('body').mouseup(function() { var down; down = false; }); setTimeout(function() { if (down) { return classie.add(dropArea, "show"); } }, 200); return;
Workaround, but this code blocks all click events. Can I get some help? @crnacura Is there some delay or distance option? Which let me put some "click" functionality alongside the drag functionality?