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

Reduce the scope of default behavior prevention. #20

Closed
mbostock opened this issue May 19, 2016 · 0 comments
Closed

Reduce the scope of default behavior prevention. #20

mbostock opened this issue May 19, 2016 · 0 comments
Assignees

Comments

@mbostock
Copy link
Member

Currently, we register selectstart, dragstart and click preventers on all drag gestures. However, it’s only necessary to prevent these events on mouse-based drag gestures. A click event is only emulated on touch if the (single) finger doesn’t move between touchstart and touchend, so there’s no reason to suppress the click event after a touch gesture. Furthermore, it doesn’t look like selectstart or dragstart is necessary to prevent, either.

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

No branches or pull requests

1 participant