From b848cb5a72d36da16bb16d504d6d309a20e2576a Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sat, 7 Nov 2026 11:02:08 +0700 Subject: [PATCH] Scrub speed test: describe it in our own words --- crates/ui-egui/src/field_tests.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/ui-egui/src/field_tests.rs b/crates/ui-egui/src/field_tests.rs index 114e1b2e7..857b19263 100644 --- a/crates/ui-egui/src/field_tests.rs +++ b/crates/ui-egui/src/field_tests.rs @@ -301,11 +301,8 @@ fn drag(u: &mut Ui, from: Pos2, dx: f32, modifiers: Modifiers) { u.frame(vec![]); } -/// "Change the speed that you scrub the field by moving the cursor towards the top of the screen -/// to increase the scrubbing speed, or towards the bottom of the screen to reduce it. You'll see a -/// notification at the bottom of the screen for the current speed [...] There are four scrubbing -/// speeds: 2x, 1x, 1/2, and 1/4" (Adjust alignment, rotation, position and dimensions, #1837): -/// more than 100 points above where the scrub began is 2x, that far below 1/2, twice as far 1/4. +/// Scrub speed follows the pointer's height, with a notice of the speed (#1837): more than 100 +/// points above where the scrub began is 2x, that far below 1/2, twice as far 1/4. #[test] fn moving_up_or_down_while_scrubbing_changes_the_speed_and_says_so() { let (mut u, a, _) = setup();