From f9f65b5b19daff93e425b05d09ebe4d4cfa3e0ca Mon Sep 17 00:00:00 2001 From: Dan Date: Sun, 22 Nov 2026 18:39:09 +0000 Subject: [PATCH] Exercise the rotation cursor at a corner of the framework transform box --- crates/ui-egui/src/transform_hit_zone_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/transform_hit_zone_tests.rs b/crates/ui-egui/src/transform_hit_zone_tests.rs index fa8fbf3a47..169eb0a720 100644 --- a/crates/ui-egui/src/transform_hit_zone_tests.rs +++ b/crates/ui-egui/src/transform_hit_zone_tests.rs @@ -116,12 +116,12 @@ fn move_controls_only_offer_rotation_near_the_frame() { assert_eq!(h.state().session.active().unwrap().selected_layers(), [layers[1]]); h.state_mut().run("layer.select", json!({"layer": layers[0].0, "mode": "replace"})).unwrap(); - let near = [90.0, 45.0]; + let near = [50.0, 50.0]; assert!(in_press_band(&mut h, near)); move_pointer(&mut h, false, "move", near); assert_eq!(h.output().platform_output.cursor_icon, egui::CursorIcon::None); move_pointer(&mut h, false, "down", near); - move_pointer(&mut h, false, "move", [100.0, 38.0]); - move_pointer(&mut h, false, "up", [100.0, 38.0]); + move_pointer(&mut h, false, "move", [42.0, 53.0]); + move_pointer(&mut h, false, "up", [42.0, 53.0]); assert!(h.state().ui.transform.is_some(), "the rotation cursor has a matching press action"); }