Skip to content

Commit

Permalink
Fix double click no longer selecting the entire entity in 2d/3d views (
Browse files Browse the repository at this point in the history
…#8482)

* Fixes #8481
  • Loading branch information
Wumpf authored Dec 16, 2024
1 parent c385877 commit 671b25b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions crates/viewer/re_viewer_context/src/viewer_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,14 @@ impl ViewerContext<'_> {
};

egui::DragAndDrop::set_payload(&response.ctx, payload);
} else if response.double_clicked() {
if let Some(item) = selection.first_item() {
self.command_sender
.send_system(crate::SystemCommand::SetFocus(item.clone()));
}
} else if response.clicked() {
if response.double_clicked() {
if let Some(item) = selection.first_item() {
self.command_sender
.send_system(crate::SystemCommand::SetFocus(item.clone()));
}
}

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

0 comments on commit 671b25b

Please sign in to comment.