Skip to content

ImGuizmo::IsOver() returns 'true' when hovering in certain locations around the gizmo #132

@AndreiDespinoiu

Description

@AndreiDespinoiu

Steps to reproduce:

  1. Add this in your render loop:
std::cout << "Result is: " << std::boolalpha << ImGuizmo::IsOver() << '\n';
  1. While the gizmo is visible, hover the mouse cursor around it, avoiding the actual elements that comprise the gizmo.

The following occurs:
The IsOver() function returns true, regardless if the mode is set to world space or local space, and regardless if the transform operation is set to translation or scaling.
Note: Also occurs while in rotation mode, on the inside of the gizmo, as if it's hitting the backside of the control circles.

Expected result:
It should return true only if actual elements from the gizmo are hovered.

inconsistent_hover

Additional information:
Dear ImGui 1.78
OpenGL 3.3
GLFW 3.3.2
Windows 10 (64-bit) build 1903

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions