-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
ImGui::IsMouseHoveringAnyWindow() frame mismatch #635
Comments
You should be using However from the point of view |
…w(), fixing lag whole moving windows (#635)
This is due to a bug in FindHoveredWindow() which is subject to a lag introduced when I added the Repro
|
Fixed the bug introduced by this change. |
I am testing out adding ImGui to an existing program. In that program, dragging the mouse with a button pressed rotates the view. I am trying to restrict my event processing to only happen when the mouse is not over an ImGui windows. To do so, I tried using the handy function ImGui::IsMouseHoveringAnyWindow(). This mostly works, but if I drag a window near the edge quickly, the function returns false and rotates my view. There appears to be a mismatch between the mouse position that IsMouseHoveringAnyWindow() checks and the actual window position. In this case, it appears that the window position is behind. This could be solved by storing the mouse position during the previous frame and checking against that in IsMouseHoveringAnyWindow().
The text was updated successfully, but these errors were encountered: