mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: Do not rebind undragged elbow arrow endpoint (#9191)
This commit is contained in:
parent
4ec812bc18
commit
d587b8a3de
5 changed files with 90 additions and 60 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue