onEdgeDoubleClick support

This commit is contained in:
Анна Кузнецова
2021-04-13 20:29:39 +05:00
parent c748b79e09
commit f565676233
6 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ const ZoomPane = ({
// when the target element is a node, we still allow zooming
if (
(event.target.closest('.react-flow__node') || event.target.closest('.react-flow__edgeupdater')) &&
(event.target.closest('.react-flow__node') || event.target.closest('.react-flow__edge')) &&
event.type !== 'wheel'
) {
return false;