mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-18 13:26:27 +01:00
forgot this
This commit is contained in:
parent
c8e34acfa1
commit
aaf49e0024
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user