Skip to content

Commit

Permalink
Bugfix: allow hovered items to be clicked to set selection (#2057)
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed May 5, 2023
1 parent 11aec5e commit c7a1a44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/re_data_ui/src/item_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ pub fn select_hovered_on_click(
) {
if response.hovered() {
selection_state.set_hovered(items.iter().cloned());
} else if response.clicked() {
}

if response.clicked() {
if response.ctx.input(|i| i.modifiers.command) {
selection_state.toggle_selection(selection_state.hovered().to_vec());
} else {
Expand Down

0 comments on commit c7a1a44

Please sign in to comment.