diff --git a/crates/ui-contract/src/contract/body/window.rs b/crates/ui-contract/src/contract/body/window.rs index ffe88ce16..0e76ad2dc 100644 --- a/crates/ui-contract/src/contract/body/window.rs +++ b/crates/ui-contract/src/contract/body/window.rs @@ -449,6 +449,10 @@ impl BodyHooks<'_> { _ => return, }; let Some(began) = self.mode.began else { return }; + eprintln!( + "DIAG escape_during_a_pane_title_drag_cancels_it_and_reaches_nothing_else: began={began:?} core_rect={rect:?} current={:?}/{:?}", + current.pos, current.size + ); let (dx, dy, _) = grip.map_or((0, 0, CursorIcon::Grab), |index| GRIPS[index]); let kind = if grip.is_some() { PlacementKind::Size(edge_of(dx, dy)) } else { PlacementKind::Move }; let next = match pos { diff --git a/crates/ui-patterns/src/patterns/dock/panes.rs b/crates/ui-patterns/src/patterns/dock/panes.rs index 0cb160961..13998ebe4 100644 --- a/crates/ui-patterns/src/patterns/dock/panes.rs +++ b/crates/ui-patterns/src/patterns/dock/panes.rs @@ -794,6 +794,7 @@ fn show_floating(ui: &mut // A cancelled move or resize (Escape) reports the rect from before the gesture: the app takes it back, as the // steps of the gesture moved its kept rect. A click on the title with no drag reports nothing. if let Some(change) = shown.placed { + eprintln!("DIAG escape_during_a_pane_title_drag_cancels_it_and_reaches_nothing_else: placed {:?} kind {:?} given {rect:?}", change.rect, change.kind); pass.sink.borrow_mut().push(PaneRequest::FloatRect(pane.pane.clone(), change.rect)); } if shown.minimized_toggled {