From 7c3a2dff4c573120011771a446d9b88c0adef3af Mon Sep 17 00:00:00 2001 From: dohyeons Date: Wed, 22 Oct 2025 16:49:57 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=EB=83=85=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components/admin/dashboard/gridUtils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/components/admin/dashboard/gridUtils.ts b/frontend/components/admin/dashboard/gridUtils.ts index a9aaeec8..083f819b 100644 --- a/frontend/components/admin/dashboard/gridUtils.ts +++ b/frontend/components/admin/dashboard/gridUtils.ts @@ -259,8 +259,8 @@ export function findNearestGuideline( return { nearest, distance: minDistance }; } -// 자석 스냅 (10px 이내면 스냅) +// 강제 스냅 (항상 가장 가까운 가이드라인에 스냅) export function magneticSnap(value: number, guidelines: number[]): number { - const { nearest, distance } = findNearestGuideline(value, guidelines); - return distance <= GRID_CONFIG.SNAP_DISTANCE ? nearest : value; + const { nearest } = findNearestGuideline(value, guidelines); + return nearest; // 거리 체크 없이 무조건 스냅 }