diff --git a/crates/ui-egui/src/canvas/document_area.rs b/crates/ui-egui/src/canvas/document_area.rs index 95bd4f4264..64d7572b28 100644 --- a/crates/ui-egui/src/canvas/document_area.rs +++ b/crates/ui-egui/src/canvas/document_area.rs @@ -311,6 +311,11 @@ fn arranged(app: &mut PhotocraftApp, ui: &mut egui::Ui, rect: Rect, active: usiz } } if let Some(d) = selected { + // The tiles drew before the press activated another one: run the pass again, so this frame already shows the + // contextual task bar on the new active tile and not on the tile that was active. + if d != active { + ui.ctx().request_discard("a pressed tile became the active document"); + } app.session.set_active(d); } // A clean document can leave the session immediately, so close only after the pane indices were used.