marcojakob / dart-dnd

Drag and Drop for Dart web apps with mouse and touch support.
https://code.makery.ch/library/dart-drag-and-drop/
MIT License
135 stars 91 forks source link

Allow a configurable clickSuppression distance #13

Closed dustyholmes-wf closed 8 years ago

dustyholmes-wf commented 8 years ago

We found that the click suppression was a little too aggressive for users with less mousing accuracy. They would attempt to click and trigger a small drag. Which then suppressed the click event and prevented the action they intended to complete.

I chose not to attempt to remove the code as it was very clearly intentionally added. Instead I provided a means for consumers to customize the interaction to their needs.

By adding a configurable suppression minimum distance it allows the consumer of dnd to choose when to suppress clicks.

I'm open to alternatives.

@marcojakob

dustyholmes-wf commented 8 years ago

@marcojakob We need a release to pub.dartlang.org in order to consume this. Can you get a version published?

marcojakob commented 8 years ago

Sure. I've published the new version on pub. :shipit:

dustyholmes-wf commented 8 years ago

Thank you!