mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fixup! Add event listeners for shapes shortcuts
This commit is contained in:
parent
4730545c06
commit
0182c467d7
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,8 @@ function hitTest(element: ExcalidrawElement, x: number, y: number): boolean {
|
||||||
const y2 = getElementAbsoluteY2(element);
|
const y2 = getElementAbsoluteY2(element);
|
||||||
|
|
||||||
return x >= x1 && x <= x2 && y >= y1 && y <= y2;
|
return x >= x1 && x <= x2 && y >= y1 && y <= y2;
|
||||||
|
} else if (element.type === "selection") {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Unimplemented type " + element.type);
|
throw new Error("Unimplemented type " + element.type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue