From b7629c4895779a7f2d23a78d6d7c4b0f4c93e269 Mon Sep 17 00:00:00 2001 From: gianlucafiore <50465150+gianlucafiore@users.noreply.github.com> Date: Fri, 16 Oct 2026 17:00:53 -0300 Subject: [PATCH] test(selection): keep the held-gesture setup readable --- src/app/automation.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/automation.rs b/src/app/automation.rs index 60cc46846..73743c66a 100644 --- a/src/app/automation.rs +++ b/src/app/automation.rs @@ -3555,14 +3555,14 @@ mod tests { // Deterministically simulate an intentional hold-to-lasso. // A fast click+move must no longer activate a lasso just // because the cursor crossed the old 24 px shortcut. + let held_since = + iced::time::Instant::now() - std::time::Duration::from_millis(260); app.tabs[i] .scene .selection .borrow_mut() .input - .left_press_time = Some( - iced::time::Instant::now() - std::time::Duration::from_millis(260), - ); + .left_press_time = Some(held_since); for &(x, y) in &path { let _ = app.update(Message::ViewportMove(iced::Point::new(x, y))); }