fixup! Add event listeners for shapes shortcuts

This commit is contained in:
Alex Bratsos 2020-01-04 00:19:56 +02:00
parent 4730545c06
commit 0182c467d7

View file

@ -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);
} }