fix(edge-drag): update to new version

This commit is contained in:
moklick
2020-11-05 16:26:02 +01:00
parent 28ad06a7bd
commit 9dfe7ea8e3
7 changed files with 33 additions and 43 deletions
+4 -1
View File
@@ -159,7 +159,10 @@ const ZoomPane = ({
}
// when the target element is a node, we still allow zooming
if (event.target.closest('.react-flow__node') && event.type !== 'wheel') {
if (
(event.target.closest('.react-flow__node') || event.target.closest('.react-flow__edgeupdater')) &&
event.type !== 'wheel'
) {
return false;
}