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:
@ -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);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user