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

workaround for delayed mouseup event from touchpads #3478

Merged
merged 2 commits into from
Dec 26, 2017

Conversation

nightwing
Copy link
Member

workaround for #3471

also matches with the behavior of other online code editors and sublime text

@lennartcl
Copy link
Contributor

I'm not sure I fully understand the solution, are there any downsides to this?

@nightwing
Copy link
Member Author

The proposed solution is to stop mouse selection, when editor command is invoked, so if mouse is pressed, and user presses ctrl-a, or some other key, mouse movements will stop changing the selection.

This matches with the behavior of sublime text and monaco, and i couldn't find bug reports related to this behavior.

Only potential issue i can see is pressing ctrl-c and wanting to continue the selection, but as a workaround for that we can release mouse only if selection changes during the command.

@lennartcl
Copy link
Contributor

I see. Thanks. I tested the approach. LGTM.

@nightwing nightwing merged commit 6bd1b82 into master Dec 26, 2017
@nightwing nightwing deleted the fix-mouseup-delay branch December 26, 2017 14:59
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.

2 participants