mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-18 21:36: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) =>
|
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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user