From 51bee0982eb20ef3b6c6de3f6cfa07b21fd503a2 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 9d9309cb6..b2bada6e4 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) {