This commit is contained in:
AykutSarac 2022-10-30 13:32:20 +03:00
parent e32147e1bf
commit 8fa8130d9d

View File

@ -31,7 +31,7 @@ const StyledEditorWrapper = styled.div<{ isWidget: boolean }>`
cursor: move; cursor: move;
} }
.dragging { .dragging, .dragging button {
pointer-events: none; pointer-events: none;
} }
@ -107,7 +107,7 @@ const GraphComponent = ({
if (nodes.length > 8_000) return <ErrorView />; if (nodes.length > 8_000) return <ErrorView />;
return ( return (
<StyledEditorWrapper isWidget={isWidget}> <StyledEditorWrapper isWidget={isWidget} onContextMenu={e => e.preventDefault()}>
{loading && <Loading message="Painting graph..." />} {loading && <Loading message="Painting graph..." />}
<TransformWrapper <TransformWrapper
maxScale={2} maxScale={2}