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