refactor(updates): only trigger dim updates when dim changed

This commit is contained in:
moklick
2024-04-11 12:31:14 +02:00
parent 63aa0dd713
commit 4fa3a87241
14 changed files with 57 additions and 53 deletions
@@ -52,7 +52,7 @@
nodeDragThreshold,
selectNodesOnDrag,
handleNodeSelection,
updateNodeDimensions
updateNodeInternals
} = store;
let nodeRef: HTMLDivElement;
@@ -97,7 +97,7 @@
if (doUpdate) {
requestAnimationFrame(() =>
updateNodeDimensions(
updateNodeInternals(
new Map([
[
id,