From bfa42f85e60ad33ed83dcbb6a4d0c0c27b6a09e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20G=C3=B6rtler?= Date: Tue, 17 Dec 2024 17:45:35 +0100 Subject: [PATCH] Fix graph view node selection bug --- crates/viewer/re_view_graph/src/ui/draw.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/viewer/re_view_graph/src/ui/draw.rs b/crates/viewer/re_view_graph/src/ui/draw.rs index c11c5580513a..5ab8ac73fde9 100644 --- a/crates/viewer/re_view_graph/src/ui/draw.rs +++ b/crates/viewer/re_view_graph/src/ui/draw.rs @@ -368,7 +368,11 @@ pub fn draw_graph( *hovered = Some(Item::DataResult(query.view_id, instance_path.clone())); } - // double click selects the entire entity + if response.clicked() { + ctx.selection_state() + .set_selection(Item::DataResult(query.view_id, instance_path.clone())); + } + if response.double_clicked() { // Select the entire entity ctx.selection_state().set_selection(Item::DataResult(