rhwp-studio: 드래그 선택 하이라이트 오버플로우 수정#663
Closed
postmelee wants to merge 4 commits into
Closed
Conversation
edwardkim
added a commit
that referenced
this pull request
May 8, 2026
PR #664 (Task #658): rhwp-studio 드래그 선택 하이라이트 오버플로우 수정 - merge commit: c6bf769 (4 commits 단계별 보존 no-ff merge — 작업지시자 직접 결정) - 본질 정정: cursor hit bias (cursor_nav.rs +118/-53) + selection-renderer DOM churn 정정 - 본 환경 결정적 검증 1165 lib + issue_658 2/2 + TypeScript clean + clippy clean - WASM 빌드 4,584,723 bytes - 작업지시자 시각 판정 ★ 통과 (exam_social.hwp 드래그 선택 페이지 폭 안 정합) 컨트리뷰터: @postmelee (Taegyu Lee) — 다회 사이클 영역 (PR #663 close → #664 재제출) 후속 분리: #661 (드래그 시작 영역 영역 커서/스크롤 위치 튐 영역) → PR #718 영역 closes #658 산출물: - mydocs/pr/archives/pr_664_review.md - mydocs/pr/archives/pr_664_report.md - mydocs/orders/20260508.md 갱신
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
samples/exam_social.hwp에서 드래그 선택 하이라이트가 실제 텍스트/페이지 폭을 넘어 확장되는 문제를 수정했습니다.Closes #658
원인
선택 rect 계산에서 시작/끝 오프셋 모두 동일한 렌더 트리 hit 탐색을 사용했습니다. 줄바꿈 경계에서는 같은 문자 오프셋이 이전 줄 TextRun의 끝이면서 다음 줄 TextRun의 시작일 수 있는데, 선택 시작점이 이전 줄 끝 좌표로 해석되면서 하이라이트가 오른쪽으로 과도하게 확장되었습니다.
변경 사항
inspect_658_selection진단 예제를 추가했습니다.SelectionRenderer가 기존 highlight div를 재사용하고 남는 노드는 숨기도록 변경했습니다.검증
cargo test --test issue_658_text_selection_rectscargo test --lib --releasecd rhwp-studio && npm run buildcargo run --example inspect_658_selectionsamples/exam_social.hwp선택 동작 확인956.6px1028.0px18 -> 3 -> 0visible nodes, 전체 노드 수 증가 없음후속 작업