Wraps onNodesChange to add Shift+drag axis constraint.
The onNodesChange from useNodesState
Current nodes array (to read start positions)
Wraps onNodesChange to add Shift+drag axis constraint.