Skip to content

Commit

Permalink
fix no hover reaction on hover nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Dec 17, 2024
1 parent 55534a6 commit dd1e5e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/viewer/re_view_graph/src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ Display a graph of nodes and edges.
}
});

if resp.hovered() {
// Don't set the view to hovered if something else was already hovered.
// (this can only mean that a graph node/edge was hovered)
if resp.hovered() && ctx.selection_state().hovered_items().is_empty() {
ctx.selection_state().set_hovered(Item::View(query.view_id));
}

Expand Down

0 comments on commit dd1e5e5

Please sign in to comment.