Docking: Internals: Rename StartMouseDragFromTitleBar() -> StartMouseMovingWindowOrNode(), clarify.

This commit is contained in:
omar
2019-11-27 15:33:31 +01:00
parent 3096e7a9cd
commit 8d1b82d596
3 changed files with 28 additions and 21 deletions

View File

@ -776,7 +776,7 @@ bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_no
// Switch to moving the window after mouse is moved beyond the initial drag threshold
if (IsItemActive() && IsMouseDragging(0))
StartMouseDragFromTitleBar(window, dock_node, true);
StartMouseMovingWindowOrNode(window, dock_node, true);
return pressed;
}