Repository navigation
fix(runtime): hit-test captured presses against the drawn rect - #5
Merged
Merged
Conversation
kitlangton
force-pushed
the
fix/scrolled-click-capture
branch
from
October 23, 2026 06:49
b7fe985 to
b2d7f23
Compare
ImBIOS
pushed a commit
to ImBIOS/rune
that referenced
this pull request
Oct 26, 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.
What it does. After scrolling a view, elements below the fold stopped responding to clicks. Found running Hex's Rune macOS host on a real Mac: Settings rows below the fold, such as Launch at login, did nothing.
How it works. While a press is captured,
pointer_movedecides whether the pointer is still inside the pressed element. It usedtarget, the element's unscrolled layout rect. It now uses the rect the element was drawn at (fromhits), falling back totargetwhen there is none.Risk. Runtime pointer handling only. Unscrolled views are unchanged, since the drawn and layout rects match. Drag coordinates still use
target; I didn't touch them.Proof. New test
presses_land_inside_a_scrolled_viewscrolls a list and presses a row below the fold. It fails without the change and passes with it.cargo test -p rune --lib presses_land: 1 passedcargo fmt --checkandcargo clippy -p rune --all-targets -- -D warnings: both already fail on the base branch (formatting diffs across the crate, 21 clippy errors); I didn't fix them here.