Removed implicit default parameter to IsMouseDragging(int button = 0) to be consistent with other mouse functions.

(none of the other functions have it).
This commit is contained in:
omar
2019-12-05 18:30:27 +01:00
parent 6d9a54a904
commit b521cd357d
5 changed files with 10 additions and 5 deletions

View File

@ -768,7 +768,7 @@ bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos)
RenderArrow(window->DrawList, bb.Min + g.Style.FramePadding, text_col, window->Collapsed ? ImGuiDir_Right : ImGuiDir_Down, 1.0f);
// Switch to moving the window after mouse is moved beyond the initial drag threshold
if (IsItemActive() && IsMouseDragging())
if (IsItemActive() && IsMouseDragging(0))
StartMouseMovingWindow(window);
return pressed;