refactor(zoom): add nowheel helper class closes #719

This commit is contained in:
moklick
2020-12-10 12:07:36 +01:00
parent 5828c3b797
commit 36025b28b0
+4
View File
@@ -188,6 +188,10 @@ const ZoomPane = ({
return false;
}
if (event.target.closest('.nowheel') && event.type === 'wheel') {
return false;
}
// when the target element is a node, we still allow zooming
if (
(event.target.closest('.react-flow__node') || event.target.closest('.react-flow__edgeupdater')) &&