darabos commited on
Commit
3e289ab
·
1 Parent(s): 7f0196a

Drag nodes only using the title.

Browse files
lynxkite-app/web/src/workspace/Workspace.tsx CHANGED
@@ -77,6 +77,9 @@ function LynxKiteFlow() {
77
  if (!state.workspace) return;
78
  if (!state.workspace.nodes) return;
79
  if (!state.workspace.edges) return;
 
 
 
80
  setNodes([...state.workspace.nodes] as Node[]);
81
  setEdges([...state.workspace.edges] as Edge[]);
82
  for (const node of state.workspace.nodes) {
 
77
  if (!state.workspace) return;
78
  if (!state.workspace.nodes) return;
79
  if (!state.workspace.edges) return;
80
+ for (const n of state.workspace.nodes) {
81
+ n.dragHandle = ".bg-primary";
82
+ }
83
  setNodes([...state.workspace.nodes] as Node[]);
84
  setEdges([...state.workspace.edges] as Edge[]);
85
  for (const node of state.workspace.nodes) {