Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix: #158

AykutSarac8fa8130d9de9
diff --git a/src/components/Graph/index.tsx b/src/components/Graph/index.tsx
index a9c0ddc3..584182d2 100644
--- a/src/components/Graph/index.tsx
+++ b/src/components/Graph/index.tsx
@@ -31,7 +31,7 @@ const StyledEditorWrapper = styled.div<{ isWidget: boolean }>`
cursor: move;
}
- .dragging {
+ .dragging, .dragging button {
pointer-events: none;
}
@@ -107,7 +107,7 @@ const GraphComponent = ({
if (nodes.length > 8_000) return <ErrorView />;
return (
- <StyledEditorWrapper isWidget={isWidget}>
+ <StyledEditorWrapper isWidget={isWidget} onContextMenu={e => e.preventDefault()}>
{loading && <Loading message="Painting graph..." />}
<TransformWrapper
maxScale={2}