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
19d5c7e730
commit
94ed180584
1 changed files with 1 additions and 0 deletions
|
@ -119,6 +119,7 @@ function hitTest(element: ExcalidrawElement, x: number, y: number): boolean {
|
||||||
|
|
||||||
return x >= x1 && x <= x2 && y >= y1 && y <= y2;
|
return x >= x1 && x <= x2 && y >= y1 && y <= y2;
|
||||||
} else if (element.type === "selection") {
|
} else if (element.type === "selection") {
|
||||||
|
console.warn("This should not happen, we need to investigate why it does.");
|
||||||
return false;
|
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