From a3cd1606db08ee832a82669c6e614822d5a09343 Mon Sep 17 00:00:00 2001 From: nalpari Date: Fri, 5 Jul 2024 04:20:06 +0900 Subject: [PATCH] fix: Refactor useMode hook to fix line positioning bug --- src/hooks/useMode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useMode.js b/src/hooks/useMode.js index 32298b17..ebe02701 100644 --- a/src/hooks/useMode.js +++ b/src/hooks/useMode.js @@ -586,7 +586,7 @@ export function useMode() { }) } else { newOuterlines.push({ - x1: historyLines.current[i].x1 + 50, + x1: historyLines.current[i].x1 - 50, y1: historyLines.current[i].y1 - 50, x2: historyLines.current[i].x2 + 50, y2: historyLines.current[i].y2 - 50,