forgot this

This commit is contained in:
dank074 2023-07-20 12:43:36 -05:00
parent c8e34acfa1
commit aaf49e0024

View File

@ -88,6 +88,8 @@ export const FloorplanCanvasView: FC<ColumnProps> = props =>
const onPointerEvent = (event: PointerEvent) => const onPointerEvent = (event: PointerEvent) =>
{ {
event.preventDefault();
switch(event.type) switch(event.type)
{ {
case 'pointerout': case 'pointerout':
@ -138,7 +140,7 @@ export const FloorplanCanvasView: FC<ColumnProps> = props =>
if(!currentElement) return; if(!currentElement) return;
// @ts-ignore // @ts-ignore
currentElement.appendChild(FloorplanEditor.instance.renderer.view); currentElement.appendChild(FloorplanEditor.instance.view);
currentElement.addEventListener('pointerup', onPointerEvent); currentElement.addEventListener('pointerup', onPointerEvent);