Repository navigation
Leave the page where it stands when a press opens a thread - #809
Merged
Merged
Conversation
Pressing marked words that carry a thread moved the viewport: at 1440x900, a passage low in the window jumped 391px (an Ask's words, 399px) as the page centred it. `openPageThread` travels to the anchor for every caller, and `scrollToThread` skips the trip only while the passage clears the bottom shortcut bar's scroll-padding, so words the reader can see and press inside that band still counted as covered. A press on the words now passes `travel: false`. The t/T walk and the comment note keep travelling, since both can open a thread about a passage off screen. The card needs no trip: placeThreadPreview keeps it inside the viewport, and without the centring it opens taller (502px rather than 416px). The new test shares its fixture with the keyboard walk's clearance test: same words, same place, and only the gesture differs. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The margin card branch computed a reply-box destination and handed it to landInConversation when `focus` was "reply". No caller reaches it: the walk and the comment note pass "thread", and the mark press passes "reply" only when the Threads panel is open, which `setPanel` writes together with the state `openPageThread` checks first, so that press goes to `showThread` instead. The card now always lands on the thread, and margin-projection no longer takes landInConversation. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 18, 2026
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.
Pressing marked words that carry a thread — prose, an Ask, a widget — moved the viewport: at 1440×900, a passage low in the window jumped 391px (an Ask's words, 399px) as the page centred it.
openPageThreadtravelled to the anchor for every caller, andscrollToThreadskips the trip only while the passage clears the bottom shortcut bar's scroll-padding, so words the reader could see and press inside that band still counted as covered.A press on the words now passes
travel: false. Thet/Twalk and the comment-count skip link keep travelling, since both can open a thread about a passage off screen. The card needs no trip:placeThreadPreviewkeeps it inside the viewport, and without the centring it opens taller (502px rather than 416px).openPageThread's reply landing on the margin card is deleted. No caller reached it: the mark press asks for the reply box only while the Threads panel is open, and that case goes toshowThreadfirst.The new test shares its fixture with the walk's clearance test, so the two differ only in the gesture.
🤖 Generated with Claude Code