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; // 거리 체크 없이 무조건 스냅 }