mirror of
https://github.com/ocornut/imgui.git
synced 2025-01-31 12:03:49 +01:00
MultiSelect: Fixed ImGuiMultiSelectFlags_SelectOnClickRelease over tree node arrow.
This commit is contained in:
parent
9337151a01
commit
b13a78e6b2
@ -6471,6 +6471,8 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiID storage_id, ImGuiTreeNodeFlags
|
|||||||
{
|
{
|
||||||
// Handle multi-select + alter button flags for it
|
// Handle multi-select + alter button flags for it
|
||||||
MultiSelectItemHeader(id, &selected, &button_flags);
|
MultiSelectItemHeader(id, &selected, &button_flags);
|
||||||
|
if (is_mouse_x_over_arrow)
|
||||||
|
button_flags = (button_flags | ImGuiButtonFlags_PressedOnClick) & ~ImGuiButtonFlags_PressedOnClickRelease;
|
||||||
|
|
||||||
// We absolutely need to distinguish open vs select so comes by default
|
// We absolutely need to distinguish open vs select so comes by default
|
||||||
flags |= ImGuiTreeNodeFlags_OpenOnArrow;
|
flags |= ImGuiTreeNodeFlags_OpenOnArrow;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user