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

How are double clicks handled? #642

Open
ghost opened this issue Aug 28, 2018 · 3 comments
Open

How are double clicks handled? #642

ghost opened this issue Aug 28, 2018 · 3 comments
Labels
F - question There's no such thing as a stupid one S - api Design and usability

Comments

@ghost
Copy link

ghost commented Aug 28, 2018

I searched the documentation and found nothing about double clicks. I think there should either be some state for this in the mouse input event or at least a function to get the double click time from the system.

Keep in mind that triple clicks and so on also need to be supported. Triple click typically selects a paragraph in a text view.

@jwilm
Copy link
Contributor

jwilm commented Aug 28, 2018

@portstrom this is currently left up for the application to solve. In Alacritty, we record a timestamp whenever a click is received, and using a configurable timeout, watch for double and triple clicks.

@francesca64 francesca64 added F - question There's no such thing as a stupid one S - api Design and usability labels Aug 29, 2018
@ghost
Copy link
Author

ghost commented Aug 30, 2018

It's a shame not to be able to access the system-wide double click time configuration. There should be some API for this. I would be happy even to have an API that uses a hardcoded number as long as the implementation can be changed in a future version to use the system-wide setting.

@fasihrana
Copy link

Should be able to read system setting i think but would that be in the winit scope?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F - question There's no such thing as a stupid one S - api Design and usability
Development

No branches or pull requests

4 participants