diff --git a/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp b/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp index 3f41351c5..ca543c954 100644 --- a/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp +++ b/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp @@ -1263,12 +1263,14 @@ void TextEditor::Render(const char *aTitle, const ImVec2 &aSize, bool aBorder) { window->ScrollbarSizes = ImVec2(scrollBarSize * scroll_x, scrollBarSize * scroll_y); ImGui::GetCurrentWindowRead()->ScrollbarSizes = ImVec2(scrollBarSize * scroll_y, scrollBarSize * scroll_x); if (scroll_y) { - ImGui::GetCurrentWindow()->ScrollbarY= true; + ImGui::GetCurrentWindow()->ScrollbarY = true; ImGui::Scrollbar(ImGuiAxis_Y); + ImGui::GetCurrentWindow()->ScrollbarY = false; } if (scroll_x) { - ImGui::GetCurrentWindow()->ScrollbarX= true; + ImGui::GetCurrentWindow()->ScrollbarX = true; ImGui::Scrollbar(ImGuiAxis_X); + ImGui::GetCurrentWindow()->ScrollbarX = false; } if (mHandleKeyboardInputs) {