chore(zoompane): use isWrapped helper func

This commit is contained in:
moklick
2022-12-06 18:14:06 +01:00
parent 1be08d4a8c
commit 449e468cd9
@@ -231,7 +231,7 @@ const ZoomPane = ({
if (
event.button === 1 &&
event.type === 'mousedown' &&
(event.target.closest('.react-flow__node') || event.target.closest('.react-flow__edge'))
(isWrappedWithClass(event, 'react-flow__node') || isWrappedWithClass(event, 'react-flow__edge'))
) {
return true;
}