Skip to content

Commit 671b25b

Browse files
authored
Fix double click no longer selecting the entire entity in 2d/3d views (#8482)
* Fixes #8481
1 parent c385877 commit 671b25b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

crates/viewer/re_viewer_context/src/viewer_context.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,14 @@ impl ViewerContext<'_> {
191191
};
192192

193193
egui::DragAndDrop::set_payload(&response.ctx, payload);
194-
} else if response.double_clicked() {
195-
if let Some(item) = selection.first_item() {
196-
self.command_sender
197-
.send_system(crate::SystemCommand::SetFocus(item.clone()));
198-
}
199194
} else if response.clicked() {
195+
if response.double_clicked() {
196+
if let Some(item) = selection.first_item() {
197+
self.command_sender
198+
.send_system(crate::SystemCommand::SetFocus(item.clone()));
199+
}
200+
}
201+
200202
if response.ctx.input(|i| i.modifiers.command) {
201203
selection_state.toggle_selection(selection);
202204
} else {

0 commit comments

Comments
 (0)