diff --git a/crates/ui-egui/src/panes.rs b/crates/ui-egui/src/panes.rs index fed9cf7a32..8fe15092a9 100644 --- a/crates/ui-egui/src/panes.rs +++ b/crates/ui-egui/src/panes.rs @@ -18,7 +18,7 @@ use std::collections::{HashMap, HashSet}; use craft::quit::CloseScope; -use craft::ui::canvas::{SplitAt, SplitLayout, SplitViews, TabDropTarget}; +use craft::ui::canvas::{PanePress, SplitAt, SplitLayout, SplitViews, TabDropTarget}; use craft::ui::contract::Bind; // PLAN: assumed path of `Bind` through the facade use pdfcraft_engine::DocId; @@ -446,6 +446,7 @@ pub(crate) fn page_area(app: &mut PdfCraftApp, ui: &mut egui::Ui) { let views = SplitViews::new(tl!("Pages").to_string(), layout, Bind::bound(&mut at)) .count(1) .active(active) + .pane_press(PanePress::Interact) .takes_tabs::(|documents, _| { !documents.is_empty() && documents.iter().all(|d| matches!(d, StripTab::View(key) if open.contains(key))) }) diff --git a/crates/ui-egui/tests/it/split_view_edits.rs b/crates/ui-egui/tests/it/split_view_edits.rs index a123f00e4d..4d43fba61e 100644 --- a/crates/ui-egui/tests/it/split_view_edits.rs +++ b/crates/ui-egui/tests/it/split_view_edits.rs @@ -58,7 +58,6 @@ fn click(h: &mut Harness<'static, PdfCraftApp>, p: Pos2) { /// makes the first pane active before the second is drawn, and the field commits as it loses the /// focus, so its edit is queued on the tab that is no longer active. It used to wait there until /// the check box's edit made that tab start afresh next frame, and the typing was gone. -#[ignore = "known gap of the egui-to-craft port: see docs/port-known-gaps.md"] #[test] fn typing_in_one_pane_survives_an_edit_in_the_other() { let mut h = harness(); diff --git a/docs/port-known-gaps.md b/docs/port-known-gaps.md index c71e25fe42..c4b879bb4f 100644 --- a/docs/port-known-gaps.md +++ b/docs/port-known-gaps.md @@ -10,5 +10,4 @@ fixed. Framework items (F-n) are in the port workspace's follow-up list. | `editing::paragraph_edges_and_frames_are_caught_without_aiming_for_the_hairline` | a click off the text doesn't apply the typing | F-115 follow-up: the edge band and the click-off rule overlap | | `marks::the_preview_shows_the_page_the_range_selects_under_the_marks` | the stamp preview doesn't show the selected page | F-161: the preview overlay's clip is inverted and its geometry a pass behind | | `panel_snapshots::every_panel_matches_its_snapshot` | all 11 accessibility-tree snapshots differ after updating the dock queries | L-298 defers pixel snapshots; these text snapshots need separate review | -| `split_view_edits::typing_in_one_pane_survives_an_edit_in_the_other` | the click's own edit is lost | tracing shows the checkbox press does not reach the field part, no toggle is generated and no active-pane edit is queued; the cause of the missed press remains to be found | | `split_view_render::a_late_edit_turns_the_page_in_both_panes` | the palette does not turn the page | the port's palette control ignores the search value; production puts it in the query, which the shared palette now keeps in its own session. Typing the query and pressing Enter or activating the matching row also left rotation at zero; the pane rendering assertion has not yet been reached |