Skip to content

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