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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCHD1R3rywQBPCHXZA
This commit is contained in:
mtlcl410andClaude Opus 5.5 committed 2026-11-08 01:11:38 +08:00
1 parent 4ddb5681ea
commit 9e08c8f78f
1 file changed
+2
+2
View File
@@ -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);