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

Require pointer to have moved before drag starts #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wireblue
Copy link

Issue

Our application has a sortable item that could also be clicked (think cards on a Trello board).

When using Macbook trackpads with "tap to click" disabled, we could never click to open the item. It would always attempt to sort it instead.

Solution

Require the mouse to be moved a certain distance before the drag behaviour starts.

This was done by adding a "distance" option.

I figure this small distance should be imperceptible for most current users of the library, while fixing this strange behaviour on trackpads.

Note

I looked at #21. If it were accepted, I could have added the option in my app without changing the options for everyone. There was no other way I could have change the options in the underlying package otherwise.

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

Successfully merging this pull request may close these issues.

1 participant