From 9e08c8f78fb742ca289ce9509215de54d3ce12cc Mon Sep 17 00:00:00 2001 From: mtlcl410 Date: Sun, 8 Nov 2026 01:11:38 +0800 Subject: [PATCH] M3: the full-screen note test waits for the page's raster (#379) Full screen takes no press on a page whose raster is not in yet; under load six frames were not always enough, and the double-click turned the page instead of opening the note. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Pq7HyCHD1R3rywQBPCHXZA --- crates/ui-egui/tests/it/view.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ui-egui/tests/it/view.rs b/crates/ui-egui/tests/it/view.rs index 4bc6c70194..5a8938de91 100644 --- a/crates/ui-egui/tests/it/view.rs +++ b/crates/ui-egui/tests/it/view.rs @@ -2886,6 +2886,8 @@ trailer << /Root 1 0 R >> h.run_steps(8); h.key_press_modifiers(Modifiers::COMMAND, Key::L); h.run_steps(6); + // Until the page's raster is in: before it, full screen takes no press on the page. + settle(&mut h); let n = h.state().views.len() - 1; let r = h.state().views[n].page_screen_rect(0).expect("page 1 on screen"); let p = egui::pos2(r.left() + r.width() * 112.0 / 300.0, r.top() + r.height() * (400.0 - 112.0) / 400.0);