mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 06:24:39 +00:00
merge-c3: 2.2: trial keeps the vertical case inside the canvas
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user