desandro / draggabilly

:point_down: Make that shiz draggable
https://draggabilly.desandro.com
MIT License
3.86k stars 386 forks source link

Added an option called `dragOnMove`. #54

Closed SimplGy closed 9 years ago

SimplGy commented 10 years ago

If this option is set to true, the dragStart event doesn't fire until there is a mousemove on the draggable element.

Looks like a lot of code but most of it is on the test page and readme.

I'd also like to look at canceling the click event if a real drag happened, but that involved some interesting timing issues so I delayed it. This part is straightforward I think. Addresses Issue #13.

desandro commented 9 years ago

Draggabilly v1.2.0 has been released. It now triggers dragStart when dragging starts, and pointerDown when the user's pointer first touches down. Thanks again for giving this a shot :smile: