From e17eaf77ddb5e10cb95fa078e36574d5027fbe83 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 13 Sep 2024 21:14:07 +1000 Subject: [PATCH] ImGuiFullscreen: Disable border animation when smooth scrolling is off --- src/util/imgui_fullscreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/imgui_fullscreen.cpp b/src/util/imgui_fullscreen.cpp index 81fa4068c..f55c54c06 100644 --- a/src/util/imgui_fullscreen.cpp +++ b/src/util/imgui_fullscreen.cpp @@ -1052,7 +1052,7 @@ void ImGuiFullscreen::DrawMenuButtonFrame(const ImVec2& p_min, const ImVec2& p_m ImVec2 frame_max = p_max; const ImGuiIO& io = ImGui::GetIO(); - if (io.NavVisible) + if (s_smooth_scrolling && io.NavVisible) { if (!s_had_hovered_menu_item || io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f) {