CursorEntered
and CursorLeft
events not getting sent if we leave the windows while holding the mouse button down in Windows
#3153
Labels
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 getCursorEntered
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 sendingWM_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.
The text was updated successfully, but these errors were encountered: