refactor(react): improve performance by simplify edge renderer

This commit is contained in:
moklick
2023-06-08 12:27:37 +02:00
parent 864dc262c2
commit 4707a07c8b
5 changed files with 171 additions and 124 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ function onPointerDown(
getTransform,
}: OnPointerDownParams
) {
// when react-flow is used inside a shadow root we can't use document
// when xyflow is used inside a shadow root we can't use document
const doc = getHostForElement(event.target as HTMLElement);
let autoPanId = 0;
let closestHandle: ConnectionHandle | null;