From 5e017ccbb7c6a98bfa8a93a0622423a92df59e2a Mon Sep 17 00:00:00 2001 From: Jaeyoung Lee Date: Wed, 30 Jul 2025 10:36:25 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8F=99=EC=84=A0=EC=9D=B4=EB=8F=99,=20?= =?UTF-8?q?=ED=98=95=EC=9D=B4=EB=8F=99=20=EC=8B=9C=20=EC=A2=8C=ED=91=9C=20?= =?UTF-8?q?=EA=B3=84=EC=82=B0=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/roofcover/useMovementSetting.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hooks/roofcover/useMovementSetting.js b/src/hooks/roofcover/useMovementSetting.js index cbc69908..e1fa2650 100644 --- a/src/hooks/roofcover/useMovementSetting.js +++ b/src/hooks/roofcover/useMovementSetting.js @@ -214,13 +214,13 @@ export function useMovementSetting(id) { if (!target) return const { top: targetTop, left: targetLeft } = target - const currentX = Big(getIntersectMousePoint(e).x).round(0, Big.roundUp) - const currentY = Big(getIntersectMousePoint(e).y).round(0, Big.roundUp) + const currentX = Big(getIntersectMousePoint(e).x) //.round(0, Big.roundUp) + const currentY = Big(getIntersectMousePoint(e).y) //.round(0, Big.roundUp) let value = '' if (target.y1 === target.y2) { - value = Big(targetTop).minus(currentY).times(10) + value = Big(targetTop).minus(currentY).times(10).round(0) } else { - value = Big(targetLeft).minus(currentX).times(10).neg() + value = Big(targetLeft).minus(currentX).times(10).round(0).neg() } if (typeRef.current === TYPE.FLOW_LINE) { FLOW_LINE_REF.POINTER_INPUT_REF.current.value = value.toNumber()