From 81c42ae00c9a2e73e71a2e570bbc2eef74a5855c Mon Sep 17 00:00:00 2001 From: moklick Date: Fri, 21 Oct 2022 12:05:25 +0200 Subject: [PATCH] fix(onlyRenderVisibleElements): always render nodes with dragging=true closes #2444 --- packages/core/src/utils/graph.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/utils/graph.ts b/packages/core/src/utils/graph.ts index b07db923..123fd13e 100644 --- a/packages/core/src/utils/graph.ts +++ b/packages/core/src/utils/graph.ts @@ -188,7 +188,7 @@ export const getNodesInside = ( const area = (width || 0) * (height || 0); const isVisible = notInitialized || partiallyVisible || overlappingArea >= area; - if (isVisible) { + if (isVisible || node.dragging) { visibleNodes.push(node); } });