Repository navigation
Conversation
…parent (#98) The mouse hit test stops descending at any node the pointer misses, so a child drawn outside a non-clipping parent (clipping is off by default in the renderer) can't be hovered or clicked with the LG Magic Remote. With `respectClipping: true`, a subtree is cut off only where a node sets `clipping`; the search otherwise keeps descending, recording only nodes the pointer is over. Topmost wins by zIndex, then later sibling, with an index tiebreak since old webOS engines lack a stable sort. Off by default, so the existing single-path search is unchanged. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit fe393b6)
This branch has not been deployed
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.
Backport of #98 to
1.7(cherry-picked with-x; applied cleanly —useMouse.ts, its tests and docs were identical to pre-mergemain).Adds an opt-in
respectClippingoption touseMouse:With it on, the mouse hit test prunes a subtree only where a node sets
clipping, so children drawn outside a non-clipping parent can be hovered and clicked with the LG Magic Remote. Off by default; the existing search is unchanged. See #98 for the design and the perf tradeoff (searches most of the tree per pointer move, not yet measured on LG hardware).Tests
Same five
useMouse respectClippingcases as #98. On1.7's own dependencies:npm test(737 passed, 13 skipped),npm run tscandnpm run lintpass.🤖 Generated with Claude Code