Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Enable initiation threshold for dragging #155

Open
artemisclyde opened this issue Mar 4, 2020 · 2 comments
Open

[Feature Request] Enable initiation threshold for dragging #155

artemisclyde opened this issue Mar 4, 2020 · 2 comments

Comments

@artemisclyde
Copy link

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]
@Hypercubed
Copy link
Contributor

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

@artemisclyde
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants