Skip to content

[two_dimensional_scrollables] Fix horizontal scrolled tree view hit testing#10977

Open
MousyBusiness wants to merge 3 commits intoflutter:mainfrom
MousyBusiness:main
Open

[two_dimensional_scrollables] Fix horizontal scrolled tree view hit testing#10977
MousyBusiness wants to merge 3 commits intoflutter:mainfrom
MousyBusiness:main

Conversation

@MousyBusiness
Copy link

@MousyBusiness MousyBusiness commented Feb 7, 2026

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.

List which issues are fixed by this PR. You must list at least one issue.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@MousyBusiness MousyBusiness requested a review from Piinks as a code owner February 7, 2026 22:24
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@google-cla
Copy link

google-cla bot commented Feb 7, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added p: two_dimensional_scrollables Issues pertaining to the two_dimensional_scrollables package triage-framework Should be looked at in framework triage labels Feb 7, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly fixes a hit testing issue in TreeView for horizontally scrolled content by updating RenderTreeViewport.hitTestChildren. The version and changelog are also updated. My main feedback is about adding a regression test to ensure this bug doesn't reappear, as detailed in the comment on the CHANGELOG.

@@ -1,3 +1,7 @@
## 0.3.9

* Fix hit testing issue when horizontally scrolled.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While this change correctly fixes the hit testing issue, the PR is missing a regression test. As per the repository style guide (line 18), changes should be tested. Please add a test case that involves a horizontally scrolled TreeView to verify this fix and prevent future regressions.

References
  1. Code should be tested. This bug fix should be accompanied by a regression test. (link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p: two_dimensional_scrollables Issues pertaining to the two_dimensional_scrollables package triage-framework Should be looked at in framework triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant