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

Missing mouse clicks on Windows #825

Closed
stphnt opened this issue Sep 23, 2023 · 0 comments · Fixed by #826
Closed

Missing mouse clicks on Windows #825

stphnt opened this issue Sep 23, 2023 · 0 comments · Fixed by #826

Comments

@stphnt
Copy link
Contributor

stphnt commented Sep 23, 2023

Describe the bug
When clicking the mouse rapidly (double-click speed), every second click is ignored.

To Reproduce
Steps to reproduce the behavior:

  1. Run cargo run --example event-poll-read
  2. Click the mouse at the double-clicking speed, at least four times
  3. See in the output that only half of the clicks (in this case two) are registered, with two "Up" events beside each other with no "Down" event in between. Like below:
Event::Key(KeyEvent { code: Enter, modifiers: KeyModifiers(0x0), kind: Release, state: KeyEventState(0x0) })
.
.
Event::Mouse(MouseEvent { kind: Down(Left), column: 74, row: 6, modifiers: KeyModifiers(0x0) })
Event::Mouse(MouseEvent { kind: Up(Left), column: 74, row: 6, modifiers: KeyModifiers(0x0) })
Event::Mouse(MouseEvent { kind: Up(Left), column: 74, row: 6, modifiers: KeyModifiers(0x0) })
Event::Mouse(MouseEvent { kind: Down(Left), column: 74, row: 6, modifiers: KeyModifiers(0x0) })
Event::Mouse(MouseEvent { kind: Up(Left), column: 74, row: 6, modifiers: KeyModifiers(0x0) })
Event::Mouse(MouseEvent { kind: Up(Left), column: 74, row: 6, modifiers: KeyModifiers(0x0) })
.
Event::Key(KeyEvent { code: Esc, modifiers: KeyModifiers(0x0), kind: Press, state: KeyEventState(0x0) })

Expected behavior
Every mouse click is captured.

OS

  • Only on Windows (I am running Windows Home 11)
  • Linux and WSL (Ubuntu 22) behave properly

Terminal/Console

  • Windows Terminal and Command Prompt both exhibit this behaviour on my PC.
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 a pull request may close this issue.

1 participant