From 5eef2e5969e7930b6a87ca6717091ff3d72f143d Mon Sep 17 00:00:00 2001 From: moklick Date: Mon, 5 Apr 2021 16:12:12 +0200 Subject: [PATCH] refactor(smoothedge): handle mixed flows --- src/components/Edges/SmoothStepEdge.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Edges/SmoothStepEdge.tsx b/src/components/Edges/SmoothStepEdge.tsx index 9062cb00..b8317820 100644 --- a/src/components/Edges/SmoothStepEdge.tsx +++ b/src/components/Edges/SmoothStepEdge.tsx @@ -83,8 +83,8 @@ export function getSmoothStepPath({ } else { firstCornerPath = sourceY <= targetY - ? bottomRightCorner(sourceX, targetY, cornerSize) - : topRightCorner(sourceX, targetY, cornerSize); + ? bottomLeftCorner(targetX, sourceY, cornerSize) + : topRightCorner(targetX, sourceY, cornerSize); } secondCornerPath = ''; } else if (!leftAndRight.includes(sourcePosition) && leftAndRight.includes(targetPosition)) {