From 94ed180584ba01cdbf995350e83a9ddbbc8d1675 Mon Sep 17 00:00:00 2001 From: Alex Bratsos Date: Sat, 4 Jan 2020 01:07:38 +0200 Subject: [PATCH] fixup! Add event listeners for shapes shortcuts --- src/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.tsx b/src/index.tsx index d9ad8c138..7f4a1b6fa 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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);