fix: Do not rebind undragged elbow arrow endpoint (#9191)

This commit is contained in:
Márk Tolmács 2025-03-10 16:25:33 +01:00 committed by GitHub
parent 4ec812bc18
commit d587b8a3de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 90 additions and 60 deletions

View file

@ -533,9 +533,8 @@ describe("arrow element", () => {
expect(arrow.startBinding?.fixedPoint?.[1]).toBeCloseTo(0.75);
UI.resize([rectangle, arrow], "nw", [300, 350]);
expect(arrow.startBinding?.fixedPoint?.[0]).toBeCloseTo(-0.13);
expect(arrow.startBinding?.fixedPoint?.[1]).toBeCloseTo(0.11);
expect(arrow.startBinding?.fixedPoint?.[0]).toBeCloseTo(0);
expect(arrow.startBinding?.fixedPoint?.[1]).toBeCloseTo(0.25);
});
});