Remove this line to lock the nodes
onNodesChange={onNodesChange]
You can add these to lock the viewport, may have missed a few but you should get the idea.
pandOnDrag={false} zoomOnScroll={false} zoomOnPinch={false}