Conversation
A double click selected the word, but the selection was stored as an ordinary drag anchored at the word's start. The next mouse move with the button still down, even a pixel of tremor before release, re-resolved it as a character range from that anchor to the pointer, so the word collapsed to a few letters and the gesture behaved like a plain drag. Record the multi-click unit with the drag. While it lasts, the head snaps to word (double click) or element (triple click) boundaries and the anchor unit stays selected in either direction, matching the composer and native text. The virtualized path snaps the head the same way once the anchor row scrolls away. Rendered markdown in the file preview uses the same code and gets the same fix. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
dfrnoch
force-pushed
the
fix-double-click-word-select
branch
from
September 29, 2026 23:22
9895d29 to
b803b70
Compare
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.
render.rsmouse-down listener as open PR Fix transcript selection leaking through popups #556. The overlap is small, only thebegin_with_spancall sites.Test plan
markdown::render::tests::code_block_lines_participate_in_text_selectionnow moves the pointer after a double-click. Fails without the fix ("s"instead of"selectable"), passes with itselection::tests::double_click_drag_extends_by_whole_words: tremor keeps the word; dragging forward, backward and into the next element extends by wordsselection::tests::triple_click_drag_extends_by_whole_elementsselection::tests::word_drag_snaps_after_the_anchor_virtualizescargo test --locked -p zeron-ui --lib -- --test-threads=1cargo clippy -p zeron-ui --all-targets: no new warnings in touched codeVideo preview (This PR vs latest release build)
8mb.video-ci2-LPjtURm7.mp4
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.