Fix node resizing while zooming

This commit is contained in:
peterkogo
2024-11-07 13:26:54 +01:00
parent 2fa9a92042
commit d14e616b73
4 changed files with 23 additions and 7 deletions
@@ -56,13 +56,14 @@ function ResizeControl({
domNode: resizeControlRef.current,
nodeId: id,
getStoreItems: () => {
const { nodeLookup, transform, snapGrid, snapToGrid, nodeOrigin } = store.getState();
const { nodeLookup, transform, snapGrid, snapToGrid, nodeOrigin, domNode } = store.getState();
return {
nodeLookup,
transform,
snapGrid,
snapToGrid,
nodeOrigin,
paneDomNode: domNode,
};
},
onChange: (change: XYResizerChange, childChanges: XYResizerChildChange[]) => {