Move tool: the Alt drag test reads the drag's arrowhead (#18160)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
David MannandClaude Opus 5.5 committed 2026-12-01 18:00:07 +01:00
1 parent ca691f017e
commit 5e274b4d1c
1 file changed
+2 -1
+2 -1
View File
@@ -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");