ngx-dnd icon indicating copy to clipboard operation
ngx-dnd copied to clipboard

[Feature Request] Enable initiation threshold for dragging

Open artemisclyde opened this issue 4 years ago • 2 comments

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:

  • ngx-dnd version: 8.1.0
  • Angular version: 8.2.14
  • Browser: [Chrome | Firefox | Safari]
  • Language: [TypeScript 3.5.3]

artemisclyde avatar Mar 04 '20 14:03 artemisclyde

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

Hypercubed avatar Mar 13 '20 18:03 Hypercubed

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!

artemisclyde avatar Apr 18 '20 13:04 artemisclyde