Skip to content

Commit

Permalink
feat: pan the canvas regardless of what's underneath the pointer (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhess authored Jun 1, 2023
2 parents b13a9e8 + 4ddd8b0 commit 4ed8edb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/TreeReactFlow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,10 @@ export const ReactFlowSafe = <
// box of the canvas.
minZoom: 0.001,
edgeTypes,
nodesDraggable: false,
// Note that despite the name, we can still select nodes in
// the tree in order to perform actions on them.
elementsSelectable: false,
onNodeClick: (e, n) => {
"onNodeClick" in p &&
p.onNodeClick(
Expand Down

0 comments on commit 4ed8edb

Please sign in to comment.