fix: Refactor useMode hook to fix line positioning bug

This commit is contained in:
nalpari 2024-07-05 04:20:06 +09:00
parent 41b8dea43a
commit a3cd1606db

View File

@ -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,