diff --git a/src/render/imgui.cc b/src/render/imgui.cc index c96b8864..4308ff69 100644 --- a/src/render/imgui.cc +++ b/src/render/imgui.cc @@ -76,11 +76,11 @@ extern "C" void imgui_begin_frame(struct imgui *imgui, int width, int height) { #ifdef HAVE_IMGUI ImGuiIO &io = ImGui::GetIO(); - ImGui::NewFrame(); - io.MouseWheel = 0.0; io.DisplaySize = ImVec2(static_cast(width), static_cast(height)); + + ImGui::NewFrame(); #endif }