You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am fairly new to imgui, so it is possible that I am missing something, however I believe there is possible bug with ImGui::IsMouseDragging()'s current behavior.
Even after finishing the drag over a window, said function will return true, with drag distance equal to 0.0 in both direction. Is there any reasoning for this function to return true after mouse is released? Only subsequent mouse click will stop the dragging from being reported.
A possible fix to that is to simply reset the g.IO.MouseDragMaxDistanceSqr[i] to 0.0 after the mouse is release in ImGui::NewFrame()
Thanks!
The text was updated successfully, but these errors were encountered:
I am fairly new to imgui, so it is possible that I am missing something, however I believe there is possible bug with ImGui::IsMouseDragging()'s current behavior.
Even after finishing the drag over a window, said function will return true, with drag distance equal to 0.0 in both direction. Is there any reasoning for this function to return true after mouse is released? Only subsequent mouse click will stop the dragging from being reported.
A possible fix to that is to simply reset the g.IO.MouseDragMaxDistanceSqr[i] to 0.0 after the mouse is release in ImGui::NewFrame()
Thanks!
―
Reply to this email directly or view it on GitHub.
Went through logs and can't seem a reason why it was this ever way. Because it was never part of a test perhaps it was always broken and assuming the user would test IsMouseDown() first.
Thanks!
Hi,
I am fairly new to imgui, so it is possible that I am missing something, however I believe there is possible bug with ImGui::IsMouseDragging()'s current behavior.
Even after finishing the drag over a window, said function will return true, with drag distance equal to 0.0 in both direction. Is there any reasoning for this function to return true after mouse is released? Only subsequent mouse click will stop the dragging from being reported.
A possible fix to that is to simply reset the g.IO.MouseDragMaxDistanceSqr[i] to 0.0 after the mouse is release in ImGui::NewFrame()
Thanks!
The text was updated successfully, but these errors were encountered: