From aaf49e0024e57184fcdf87f0aec14051edbe6819 Mon Sep 17 00:00:00 2001 From: dank074 Date: Thu, 20 Jul 2023 12:43:36 -0500 Subject: [PATCH] forgot this --- src/components/floorplan-editor/views/FloorplanCanvasView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/floorplan-editor/views/FloorplanCanvasView.tsx b/src/components/floorplan-editor/views/FloorplanCanvasView.tsx index 65f4f8c1..50fed59a 100644 --- a/src/components/floorplan-editor/views/FloorplanCanvasView.tsx +++ b/src/components/floorplan-editor/views/FloorplanCanvasView.tsx @@ -88,6 +88,8 @@ export const FloorplanCanvasView: FC = props => const onPointerEvent = (event: PointerEvent) => { + event.preventDefault(); + switch(event.type) { case 'pointerout': @@ -138,7 +140,7 @@ export const FloorplanCanvasView: FC = props => if(!currentElement) return; // @ts-ignore - currentElement.appendChild(FloorplanEditor.instance.renderer.view); + currentElement.appendChild(FloorplanEditor.instance.view); currentElement.addEventListener('pointerup', onPointerEvent);