Repository navigation
feat(ui): word-wise drag after double-click, line-wise extension after triple-click #8739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5c99107
feat(ui): word-wise drag after double-click, line-wise after triple-c…
qwen-code-dev-bot 01404d5
Merge branch 'main' into feat/word-line-drag-selection
qwen-code-dev-bot 99af051
fix(ui): copy single-cell word/line selections on release
qwen-code-dev-bot 24ae25c
fix(ui): apply release cell to word/line drags, keep multi-click chain
qwen-code-dev-bot 797f345
Merge branch 'main' into feat/word-line-drag-selection
qwen-code-dev-bot a6c516e
refactor(ui): dedupe word/line drag state and span dispatch
qwen-code-dev-bot 7cf9520
refactor(ui): dedupe collapsed-range policy and pin multi-click tests
qwen-code-dev-bot b5cbd2f
test(ui): pin bare-click highlight and multi-row line-drag copy (#8739)
qwen-code-dev-bot 4fd9868
Merge branch 'main' into feat/word-line-drag-selection
qwen-code-dev-bot a03e911
Merge branch 'main' into feat/word-line-drag-selection
qwen-code-dev-bot de9c6a1
fix(ui): restore press-time copy for multi-click selection (#8739)
qwen-code-dev-bot 133e7ff
Merge branch 'feat/word-line-drag-selection' of https://github.com/Qw…
qwen-code-dev-bot b32dbbe
Merge branch 'main' into feat/word-line-drag-selection
qwen-code-dev-bot d5999ed
Merge branch 'main' into feat/word-line-drag-selection
qwen-code-dev-bot aaaae0d
Merge branch 'main' into feat/word-line-drag-selection
qwen-code-dev-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declined, for the same reasons recorded on rc:3740996254: copy-on-release is this PR's documented design and makes interrupted word/line drags behave exactly like interrupted char drags (cleared, no copy) — the established B1 semantic for all drags. Restoring press-time copy conflicts with this round's rc:3741007226 finding, which pins release-only copy, and would write the clipboard even for gestures that never complete. The A/B-verified difference versus the merge base is real but is the documented, intentional convergence of multi-click and drag semantics; the behavior is now pinned by
toHaveBeenCalledTimes(1)assertions. If a maintainer prefers the base-tree guarantee for multi-clicks interrupted mid-hold, it is a one-line change (copySelection()in thecount >= 2press branch) — flagging for maintainer preference.中文说明
已拒绝,理由与 rc:3740996254 上的记录相同:仅在释放时复制是本 PR 明确记载的设计,它使被打断的词/行拖动与被打断的字符拖动行为完全一致(清除选区、不复制)——这是 B1 范围内所有拖动的既定语义。恢复按下时复制与本轮 rc:3741007226 意见冲突(该意见要求钉住"仅释放时复制"),且会导致从未完成的手势也写入剪贴板。A/B 验证出的与 merge base 的差异确实存在,但那是多点点击与拖动语义有意收敛的、文档中记载的结果;该行为现已由
toHaveBeenCalledTimes(1)断言钉住。如果维护者更希望保留 base 分支上"按住期间被打断的多点点击也保证复制"的语义,只需一行改动(在count >= 2按下分支加回copySelection())——已标注供维护者定夺。