지붕선 선택 후 이동 시 깨지는 현상 수정

This commit is contained in:
hyojun.choi 2026-06-09 16:11:51 +09:00
parent dda00e75b3
commit c0539f49ec

View File

@ -280,6 +280,12 @@ export function useRoofFn() {
originY: 'center',
objectCaching: false,
})
// [보조선 이중이동 fix] 지붕선 클릭 시 설정된 _preDragLeft 가 남아 있으면 polygonMoved 핸들러가
// 내부 보조선(ridge 등 parentId===roof.id)을 delta 만큼 한 번 이동시키고, 아래 allRoofObject
// 평행이동이 또 이동시켜 보조선이 2×delta 로 어긋난다(줌 축소+원거리 이동 시 크게 틀어짐).
// fire 전에 정리해 polygonMoved 의 자식 이동을 막고, 평행이동은 아래에서 한 번만 수행한다.
roof._preDragLeft = null
roof._preDragTop = null
roof.fire('polygonMoved')
roof.fire('modified')