refactor(react): improve performance by simplify edge renderer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user