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