fix: fixed scrolling behavior inside editor when plan editor window is opened

ref: N25B-412
This commit is contained in:
JGerla
2026-01-05 15:53:20 +01:00
parent 149b82cb66
commit 111400bd82
4 changed files with 227 additions and 205 deletions

View File

@@ -72,6 +72,15 @@ const useFlowStore = create<FlowState>(UndoRedo((set, get) => ({
nodes: initialNodes,
edges: initialEdges,
edgeReconnectSuccessful: true,
scrollable: true,
/**
* handles changing the scrollable state of the editor,
* this is used to control if scrolling is captured by the editor
* or if it's available to other components within the reactFlowProvider
* @param {boolean} val - the desired state
*/
setScrollable: (val) => set({scrollable: val}),
/**
* Handles changes to nodes triggered by ReactFlow.