From 00559e1fd203bf89b3b1f6b61effca7e6d29c4d5 Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 16 Nov 2026 12:56:19 +0000 Subject: [PATCH] merge-c3: 2.2: trial keeps the vertical case inside the canvas --- crates/draw/tests/it/bezier.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/draw/tests/it/bezier.rs b/crates/draw/tests/it/bezier.rs index 669923106..6948b3902 100644 --- a/crates/draw/tests/it/bezier.rs +++ b/crates/draw/tests/it/bezier.rs @@ -555,11 +555,11 @@ fn insert_on_a_picked_anchor_adds_one_halfway_along_the_segment_leaving_it() { assert_eq!(h.state.borrow().inserts.len(), 1, "nothing to insert after the last anchor of an open subpath"); } -// ⇧ during an anchor drag: a 5:12 move stays on the horizontal, also with the f32 noise of the screen mapping, its -// mirror on the vertical, a 45° move goes on the diagonal; the drag proposes what it commits (#13684). +// ⇧ during an anchor drag: a 5:12 move stays on the horizontal, also with the f32 noise of the screen mapping, a 12:5 +// one on the vertical, a 45° move goes on the diagonal; the drag proposes what it commits (#13684). #[trial] fn shift_keeps_an_anchor_drag_on_the_axis_or_the_diagonal() { - let cases = [((60.0, -25.0), p(220.0, 60.0)), ((60.0, -25.00005), p(220.0, 60.0)), ((25.0, -60.0), p(160.0, 0.0)), ((50.0, -50.0), p(210.0, 10.0))]; + let cases = [((60.0, -25.0), p(220.0, 60.0)), ((60.0, -25.00005), p(220.0, 60.0)), ((25.0, 60.0), p(160.0, 120.0)), ((50.0, -50.0), p(210.0, 10.0))]; for ((dx, dy), want) in cases { let mut h = two_paths(); let anchor = h.screen(p(160.0, 60.0));