Skip to content

Commit

Permalink
Fix graph view node selection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
grtlr committed Dec 17, 2024
1 parent 9a9e55b commit bfa42f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/viewer/re_view_graph/src/ui/draw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bfa42f8

Please sign in to comment.