ImGuiFullscreen: Disable border animation when smooth scrolling is off

This commit is contained in:
Stenzek 2024-09-13 21:14:07 +10:00
parent 294e8c9201
commit 51bee0982e
No known key found for this signature in database

View file

@ -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)
{