Skip to content

Commit 6184b67

Browse files
committed
ImGuiFullscreen: Slightly improve hover/animation behavior
1 parent ebaef81 commit 6184b67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/util/imgui_fullscreen.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,10 @@ void ImGuiFullscreen::DrawMenuButtonFrame(const ImVec2& p_min, const ImVec2& p_m
841841
ImVec2 frame_min = p_min;
842842
ImVec2 frame_max = p_max;
843843

844-
if (ImGui::GetIO().NavVisible && ImGui::GetHoveredID() != ImGui::GetItemID())
844+
const ImGuiIO& io = ImGui::GetIO();
845+
if (io.NavVisible)
845846
{
846-
if (!s_had_hovered_menu_item)
847+
if (!s_had_hovered_menu_item || io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f)
847848
{
848849
s_menu_button_frame_min_animated.Reset(frame_min);
849850
s_menu_button_frame_max_animated.Reset(frame_max);

0 commit comments

Comments
 (0)