We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug If i double click with a mouse (around half a second space between clicks) only the first click registers as event
To Reproduce 1.) Build and run code below
fn main() { crossterm::execute!(std::io::stdout(), crossterm::event::EnableMouseCapture,).unwrap(); loop { match crossterm::event::read().unwrap() { crossterm::event::Event::Mouse(mouse) => { if let crossterm::event::MouseEventKind::Down(_) = mouse.kind { println!("Mouse button down") } } _ => {} } } }
2.) Double click with any mouse (or touchpad) button fast 3.) "Mouse button down" is printed only once (first click of a double click)
Expected behavior Text should be printed twice, for every click
OS Windows 11
Terminal/Console Windows Command Prompt and VSCode terminal
The text was updated successfully, but these errors were encountered:
I've noticed the same, but I thought this is a feature not a bug.
Makes it easier to recognize double-clicks.
Down - Up - Up instead of Down - Up - check timeout - Down - Up
Down - Up - Up
Down - Up - check timeout - Down - Up
And then I was a bit baffled when I tried everything on Linux ...
Sorry, something went wrong.
No branches or pull requests
Describe the bug
If i double click with a mouse (around half a second space between clicks) only the first click registers as event
To Reproduce
1.) Build and run code below
2.) Double click with any mouse (or touchpad) button fast
3.) "Mouse button down" is printed only once (first click of a double click)
Expected behavior
Text should be printed twice, for every click
OS
Windows 11
Terminal/Console
Windows Command Prompt and VSCode terminal
The text was updated successfully, but these errors were encountered: