diff --git a/src/components/Handle/index.tsx b/src/components/Handle/index.tsx index 88acd1d5..93c9a5a1 100644 --- a/src/components/Handle/index.tsx +++ b/src/components/Handle/index.tsx @@ -76,21 +76,23 @@ const Handle = forwardRef( const onMouseDownHandler = useCallback( (event: React.MouseEvent) => { - onMouseDown( - event, - handleId, - nodeId, - store.setState, - onConnectExtended, - isTarget, - isValidConnection, - connectionMode, - undefined, - undefined, - onConnectStart, - onConnectStop, - onConnectEnd - ); + if (event.button === 0) { + onMouseDown( + event, + handleId, + nodeId, + store.setState, + onConnectExtended, + isTarget, + isValidConnection, + connectionMode, + undefined, + undefined, + onConnectStart, + onConnectStop, + onConnectEnd + ); + } }, [ handleId,