[1961] strict y1===y2 drift 2곳 수정 — tolerance 0.5 통일 #830
@ -379,7 +379,10 @@ export function useMovementSetting(id) {
|
||||
let linePosition = result.position
|
||||
//console.log("1111linePosition:::::", direction, linePosition);
|
||||
|
||||
if (target.y1 === target.y2) {
|
||||
// [라디오 토글 drift 2026-05-12] strict y1===y2 는 (-1153,-1153.1) 같은 0.1 drift 케이스에서
|
||||
// false → 수직 분기로 떨어져 top/bottom 라디오 갱신 코드 미실행 → 桁을 上げる 고정 버그.
|
||||
// line 311 과 동일한 tolerance(0.5) 적용.
|
||||
if (Math.abs(target.y1 - target.y2) < 0.5) {
|
||||
//수평벽
|
||||
|
||||
const setRadioStates = (isUp) => {
|
||||
@ -847,7 +850,10 @@ export function useMovementSetting(id) {
|
||||
.filter((line) => Math.sqrt(Math.pow(line.line.x2 - line.line.x1, 2) + Math.pow(line.line.y2 - line.line.y1, 2)) >= 1)
|
||||
.forEach((targetItem, __iter) => {
|
||||
const currentLine = targetItem.line
|
||||
const __horizCurr = currentLine.y1 === currentLine.y2
|
||||
// [방향 가드 drift 2026-05-12] strict y1===y2 는 UI/Big.js round 로 (-1153, -1153.1) 같은
|
||||
// 0.1 drift 케이스에서 false → 수직 오판정 → FIX-2 가드가 정상 수평 라인을 skip.
|
||||
// 동일 파일 line 575 (Math.abs<0.2) 와 feedback_same_point_tolerance 메모리에 맞춰 0.5 tolerance.
|
||||
const __horizCurr = Math.abs(currentLine.y1 - currentLine.y2) < 0.5
|
||||
|
||||
// [FIX-2] UP_DOWN 한정: mixed-orientation 가드. linePosition 가족과 currentLine 방향 불일치 → 이 라인 skip.
|
||||
// FLOW_LINE 에서는 lineVector 가 이미 방향별로 targetBaseLines 를 필터링 → 별도 가드 불필요.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user