Browse Source

Double-clicking on resize grip doesn't keep grip active if mouse button is kept held.

ocornut 10 năm trước cách đây
mục cha
commit
2d81a73f85
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -3056,6 +3056,7 @@ bool ImGui::Begin(const char* name, bool* p_opened, const ImVec2& size, float bg
                         window->SizeFull = size_auto_fit;
                         if (!(window->Flags & ImGuiWindowFlags_NoSavedSettings))
                             MarkSettingsDirty();
+                        SetActiveId(0);
                     }
                     else if (held)
                     {