mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix single element bounding box bug (#2008)
Co-authored-by: Michal Srb <xixixao@seznam.cz> Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
a96406f505
commit
296e3677cf
3 changed files with 189 additions and 15 deletions
|
@ -1212,4 +1212,14 @@ describe("regression tests", () => {
|
|||
expect(h.elements[0].groupIds).toHaveLength(0);
|
||||
expect(h.elements[1].groupIds).toHaveLength(0);
|
||||
});
|
||||
|
||||
it("keeps selected element selected when click hits element bounding box but doesn't hit the element", () => {
|
||||
clickTool("ellipse");
|
||||
mouse.down(0, 0);
|
||||
mouse.up(100, 100);
|
||||
|
||||
// click on bounding box but not on element
|
||||
mouse.click(0, 0);
|
||||
expect(getSelectedElements().length).toBe(1);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue