test(selection): keep the held-gesture setup readable

This commit is contained in:
gianlucafiore committed 2026-10-16 17:00:53 -03:00
1 parent 6cafa1e3ac
commit b7629c4895
1 file changed
+3 -3
+3 -3
View File
@@ -3555,14 +3555,14 @@ mod tests {
// Deterministically simulate an intentional hold-to-lasso. // Deterministically simulate an intentional hold-to-lasso.
// A fast click+move must no longer activate a lasso just // A fast click+move must no longer activate a lasso just
// because the cursor crossed the old 24 px shortcut. // 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] app.tabs[i]
.scene .scene
.selection .selection
.borrow_mut() .borrow_mut()
.input .input
.left_press_time = Some( .left_press_time = Some(held_since);
iced::time::Instant::now() - std::time::Duration::from_millis(260),
);
for &(x, y) in &path { for &(x, y) in &path {
let _ = app.update(Message::ViewportMove(iced::Point::new(x, y))); let _ = app.update(Message::ViewportMove(iced::Point::new(x, y)));
} }