fixup! Add event listeners for shapes shortcuts

This commit is contained in:
Alex Bratsos 2020-01-04 01:07:38 +02:00
parent 19d5c7e730
commit 94ed180584

View file

@ -119,6 +119,7 @@ function hitTest(element: ExcalidrawElement, x: number, y: number): boolean {
return x >= x1 && x <= x2 && y >= y1 && y <= y2;
} else if (element.type === "selection") {
console.warn("This should not happen, we need to investigate why it does.");
return false;
} else {
throw new Error("Unimplemented type " + element.type);