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

CursorEntered and CursorLeft events not getting sent if we leave the windows while holding the mouse button down in Windows #3153

Closed
YouKnow-sys opened this issue Oct 16, 2023 · 0 comments

Comments

@YouKnow-sys
Copy link
Contributor

If we press one of mouse button (lets say LB) while inside the client area of the window and then proceed to move the cursor out of the window we no longer receive the CursorLeft event, and if we keep holding the mouse button down and then go back to window we wont get CursorEntered event either.
this happen because we call SetCapture method when user click in client area, and this will lead to windows to continue tracking mouse position and then just keep sending WM_MOUSEMOVE event until we release the button (more information in this url)
there are workarounds like manually handle this case like what link above suggested.
I'll send a PR soon with the mentioned fix.

@YouKnow-sys YouKnow-sys changed the title CursorEntered and CursorLeft events won't get send if we leave the windows while holding the mouse button down in Windows CursorEntered and CursorLeft events not getting sent if we leave the windows while holding the mouse button down in Windows Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants