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

Drag: Disable drag by middle mouse button #1353

Open
slava-uxd opened this issue Jun 29, 2017 · 0 comments
Open

Drag: Disable drag by middle mouse button #1353

slava-uxd opened this issue Jun 29, 2017 · 0 comments

Comments

@slava-uxd
Copy link

slava-uxd commented Jun 29, 2017

Allowing elements to be dragged by middle mouse button click is commonly undesirable behavior, because it disables page scroll functionality.

Replacing if (event.rightClick) return; with if(event.event.buttons!=1) return; in both Drag.start and Sortables.start works.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@slava-uxd slava-uxd changed the title Drag: Disable drag by middle mouse button click Drag: Disable drag by middle mouse button Jun 29, 2017
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

No branches or pull requests

1 participant