From 9caca9d07efc72b0c0d82a19f3abc9e370affd3a Mon Sep 17 00:00:00 2001 From: David Mann Date: Sun, 29 Nov 2026 17:03:50 +0100 Subject: [PATCH] Custom paper test: the reveal scroll goes up past where the list opened 40 wheel steps down and 40 up only came back to the start, so a row above the opening position was never checked. 80 steps up reach it. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/dialogs/file_ui/custom_paper_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/dialogs/file_ui/custom_paper_tests.rs b/crates/ui-egui/src/dialogs/file_ui/custom_paper_tests.rs index 27f1fe7488..4f0dc6347b 100644 --- a/crates/ui-egui/src/dialogs/file_ui/custom_paper_tests.rs +++ b/crates/ui-egui/src/dialogs/file_ui/custom_paper_tests.rs @@ -94,9 +94,9 @@ pub(super) fn click(h: &mut Harness<'_, Box>, label: &str) { /// Scrolls the open paper list until the row `label` is shown: the list draws only the rows in view, so a row is not in /// the access tree until the wheel has brought it into view. The list can open scrolled to its chosen row, so the wheel -/// goes down first and then up. +/// goes down first and then up, past where it started. fn reveal(h: &mut Harness<'_, Box>, label: &str) { - for step in 0..80 { + for step in 0..120 { if h.query_by_label(label).is_some() { return; }