✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
disable node click while dragging
AykutSarac920c8ff4408e
diff --git a/src/components/Graph/index.tsx b/src/components/Graph/index.tsxindex 0a560d5e..195fe98e 100644--- a/src/components/Graph/index.tsx+++ b/src/components/Graph/index.tsx@@ -32,6 +32,10 @@ const StyledEditorWrapper = styled.div<{ isWidget: boolean }>`cursor: move;}+ .dragging {+ pointer-events: none;+ }+rect {fill: ${({ theme }) => theme.BACKGROUND_NODE};}@@ -101,6 +105,12 @@ const MemoizedGraph = React.memo(function Layout({zoomAnimation={{ animationType: "linear" }}doubleClick={{ disabled: true }}onInit={onInit}+ onPanning={(ref) =>+ ref.instance.wrapperComponent?.classList.add("dragging")+ }+ onPanningStop={(ref) =>+ ref.instance.wrapperComponent?.classList.remove("dragging")+ }><TransformComponentwrapperStyle={{