From 5e274b4d1c6b7db08cd5ce1bbb8ff856d2823cd8 Mon Sep 17 00:00:00 2001 From: David Mann Date: Tue, 1 Dec 2026 18:00:07 +0100 Subject: [PATCH] Move tool: the Alt drag test reads the drag's arrowhead (#18160) Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/input_tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/input_tests.rs b/crates/ui-egui/src/input_tests.rs index 09bca121d5..a90b585216 100644 --- a/crates/ui-egui/src/input_tests.rs +++ b/crates/ui-egui/src/input_tests.rs @@ -634,7 +634,8 @@ fn move_alt_copy_cursor_follows_the_latched_duplication_drag() { h.run_steps(2); h.event(egui::Event::ModifiersChanged(Modifiers::NONE)); h.run_steps(2); - assert_eq!(h.output().platform_output.cursor_icon, egui::CursorIcon::Copy, "releasing Alt does not undo an active copy"); + // The drag itself shows the hollow arrowhead of a drag of the active layer, ⌥ or not (#18160). + assert_eq!(requested(&h), Some(craft::behavior::Cursor::Painted(craft::behavior::PaintedCursor::arrow(true))), "the drag's arrowhead"); h.event(egui::Event::PointerButton { pos: end, button: egui::PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE }); h.run_steps(2); assert_eq!(requested(&h), move_cursor, "back to the Move cursor");