Skip to content

sticky_header: Fix hit-testing of header #468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 30, 2023
Merged

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Dec 29, 2023

Fixes: #327

Also enable a bit of test config that I ended up not relying on, but that should be enabled in any case.

Our `hitTestChildren` implementation wasn't using `hitTestBoxChild`
correctly: it was attempting to do the job of `childMainAxisPosition`,
but `hitTestBoxChild` calls `childMainAxisPosition` for itself.

The implementation of `childMainAxisPosition` wasn't correct either.

Fix both, and add some tests; sticky_header hadn't had any tests on
its hit-test behavior.

Fixes: zulip#327
Copy link
Collaborator

@chrisbobbe chrisbobbe left a comment

Choose a reason for hiding this comment

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

Thanks, this is great to fix! Merging.

@chrisbobbe chrisbobbe merged commit f3de9a0 into zulip:main Dec 30, 2023
@gnprice gnprice deleted the pr-sticky branch December 30, 2023 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sticky header hit-tests at bottom of message list, though paints at top
2 participants