diff --git a/crates/ui-contract/src/runtime/overlay.rs b/crates/ui-contract/src/runtime/overlay.rs index 1e9cc92b71..f451fdbb40 100644 --- a/crates/ui-contract/src/runtime/overlay.rs +++ b/crates/ui-contract/src/runtime/overlay.rs @@ -923,7 +923,7 @@ fn absorb_zone(members: &[OpenEntry], top: &OpenEntry) -> Vec { } /// Whether a press outside `entry` stops at it, so `entry` hosts the menus opened inside it (`absorb_zone`): a floating -/// window or panel (`Rank::Window`), a dialog's card (`Rank::Modal`), which absorbs the presses outside itself, or the +/// window or panel (`Rank::Window`), a modal layer (`Rank::Modal`), whose card takes the presses outside itself, or the /// entry of an OS window mount. A layer shown in a popup window of its own is no host: its presses are judged in the /// window that opened it. fn stops_presses(entry: &OpenEntry) -> bool { diff --git a/crates/ui-contract/src/testing/overlay.rs b/crates/ui-contract/src/testing/overlay.rs index 19909d9d8e..6d8fdba9ad 100644 --- a/crates/ui-contract/src/testing/overlay.rs +++ b/crates/ui-contract/src/testing/overlay.rs @@ -7,7 +7,8 @@ use egui::{Context, Id, Pos2, Rect}; #[derive(Clone, Debug, Default)] pub struct PressJudgement { /// The screen rects a press may land in without closing the top menu family, as the last pass left them: the - /// family, its anchors and its peers. `None` when the top layer does not absorb outside presses. + /// family, its anchors and its peers, without the layer that hosts them. `None` when the top layer does not absorb + /// outside presses. pub zone: Option>, /// The outside press the input hook recorded for this pass, which closes the layers that absorb outside presses. pub absorbed: Option,