Skip to content

Commit

Permalink
ImGuiFullscreen: Disable border animation when smooth scrolling is off
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Sep 13, 2024
1 parent 294e8c9 commit 51bee09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/imgui_fullscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 51bee09

Please sign in to comment.