DragDropInteractions icon indicating copy to clipboard operation
DragDropInteractions copied to clipboard

Click reveals draggable area

Open 5punk opened this issue 10 years ago • 1 comments

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.

5punk avatar Nov 21 '14 06:11 5punk

$('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?

5punk avatar Nov 21 '14 07:11 5punk