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

WindowsDriver is sending mouse button pressed only on moving. #3380

Closed
BDisp opened this issue Apr 3, 2024 · 4 comments
Closed

WindowsDriver is sending mouse button pressed only on moving. #3380

BDisp opened this issue Apr 3, 2024 · 4 comments

Comments

@BDisp
Copy link
Collaborator

BDisp commented Apr 3, 2024

          Open `Buttons` scenario and move the mouse around the window without pressing. The screen will be all black. Pressing Esc it's possible to exit.
WindowsTerminal_uRMkWTbEX6.mp4

Originally posted by @BDisp in #3372 (comment)

@BDisp
Copy link
Collaborator Author

BDisp commented Apr 3, 2024

You can check it in action by opening the Mouse scenario.

WindowsTerminal_nXjPF212pS.mp4

@BDisp
Copy link
Collaborator Author

BDisp commented Apr 3, 2024

I think this issue is related with how Windows Terminal handles the mouse with app that are using the Win32 API to handle the mouse. Using the conhost this issue doesn't reproduces. @tig can you please ask to them about this. Thanks.

@BDisp
Copy link
Collaborator Author

BDisp commented Apr 3, 2024

Using the Command Prompt on the Windows Terminal doesn't also have this issue.
Another issue which I'm facing lately is when I move the Windows Terminal from one monitor to another where the screen is badly rendered. This happens with all consoles on the Windows Terminal.

image

@BDisp
Copy link
Collaborator Author

BDisp commented Apr 4, 2024

This is still happening even after the PR #3382, not so often but sometimes. To ensure it will emit Button1Pressed double click on the Mouse scenario and move quickly the mouse outside the terminal and then move again into the terminal and normally we'll see Button1Pressed, ReportMousePosition

image

BDisp added a commit to BDisp/Terminal.Gui that referenced this issue Apr 4, 2024
tig added a commit that referenced this issue Apr 8, 2024
Fixes #3380. WindowsDriver is sending mouse button pressed only on moving.
@BDisp BDisp closed this as completed Apr 8, 2024
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