swimlane / ngx-dnd

🕶 Drag, Drop and Sorting Library for Angular2 and beyond!
https://swimlane.github.io/ngx-dnd/
MIT License
575 stars 135 forks source link

[Feature Request] Enable initiation threshold for dragging #155

Open artemisclyde opened 4 years ago

artemisclyde commented 4 years ago

I'm submitting a ...

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Sorry, we will not be able to answer every support request.  Please consider other venues for support requests

Current behavior

Click-and-hold on a draggable element and moving the cursor slightly (1px) starts dragging. This often leads to false dragging when a user only tries to select an element but accidentally moves the cursor by just a pixel.

Expected behavior

A draggable element should have a threshold of either milliseconds or pixels of movement after which dragging is started. This way accidental dragging could be reduced greatly. For comparison, Google Drive now also has a very small but notably helpful threshold for dragging. Before that, only dragging for selected elements was enabled to avoid these accidental draggings, which I also did in our project. A threshold would be a much better UX though.

Please tell us about your environment:

Hypercubed commented 4 years ago

Unfortunatly this will not happen untill we stop using dragula under the hood. It's on the roadmap... but no timeline yet.

artemisclyde commented 4 years ago

Unfortunatly this will not happen untill we stop using dragula under the hood. It's on the roadmap... but no timeline yet.

I'll follow the progress on dropping dragula then. Thanks for the reply!