bevacqua / dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/dragula/
MIT License
22.06k stars 1.97k forks source link

click or drag #93

Closed ghost closed 9 years ago

ghost commented 9 years ago

I am making a trello clone. Trello opens a bootstrap modal for editing a clicked card. If you start dragging instead of mouseup, trello does not open the modal, starts drag instead. How can this be achieved with dragula?

I used drake.on('cancel', triggerClickEvent) but it is far from ideal. There should be a click event type exposed by drake that only fires when it is a click and not a drag.

bevacqua commented 9 years ago

Dupe of https://github.com/bevacqua/dragula/pull/84

bevacqua commented 9 years ago

Implemented as 1.7.0, by the way

ghost commented 9 years ago

you're great! Thanks. I'll try delay=true right now.

ghost commented 9 years ago

it works! thanks.