Skip to content

Commit 466f0b4

Browse files
committed
adds selection to react flow panel
1 parent 1b88e1a commit 466f0b4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/features/editor/components/Editor.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ export const Editor = ({ workflowId }: { workflowId: string }) => {
6464
fitView
6565
nodeTypes={nodeTypes}
6666
onInit={setEditor}
67+
snapGrid={[10, 10]}
68+
snapToGrid
69+
panOnScroll
70+
panOnDrag={false}
71+
selectionOnDrag
6772
>
6873
<Background />
6974
<Controls />

0 commit comments

Comments
 (0)