Skip to content

Commit

Permalink
fix(edge): change order of the first EdgeAnchor disturbed by the Edge…
Browse files Browse the repository at this point in the history
…Component
  • Loading branch information
Clément Loridan committed Apr 22, 2021
1 parent 1c23929 commit 0e9ae9f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/components/Edges/wrapEdge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,6 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
onMouseMove={onEdgeMouseMove}
onMouseLeave={onEdgeMouseLeave}
>
{handleEdgeUpdate && (
<g
onMouseDown={onEdgeUpdaterSourceMouseDown}
onMouseEnter={onEdgeUpdaterMouseEnter}
onMouseOut={onEdgeUpdaterMouseOut}
>
<EdgeAnchor position={sourcePosition} centerX={sourceX} centerY={sourceY} radius={edgeUpdaterRadius} />
</g>
)}
<EdgeComponent
id={id}
source={source}
Expand All @@ -218,6 +209,15 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
sourceHandleId={sourceHandleId}
targetHandleId={targetHandleId}
/>
{handleEdgeUpdate && (
<g
onMouseDown={onEdgeUpdaterSourceMouseDown}
onMouseEnter={onEdgeUpdaterMouseEnter}
onMouseOut={onEdgeUpdaterMouseOut}
>
<EdgeAnchor position={sourcePosition} centerX={sourceX} centerY={sourceY} radius={edgeUpdaterRadius} />
</g>
)}
{handleEdgeUpdate && (
<g
onMouseDown={onEdgeUpdaterTargetMouseDown}
Expand Down

0 comments on commit 0e9ae9f

Please sign in to comment.