Sticky header hit-tests at bottom of message list, though paints at top #327
Labels
a-msglist
The message-list screen, except what's label:a-content
a-sticky_header
Our `sticky_header` library
beta feedback
Things beta users have specifically asked for
Milestone
In the message list, if you tap near the very bottom of the viewport, you'll get navigated to the conversation or stream corresponding to the message at the top.
(I discovered this just now while reviewing #318. It had me very confused for a while because the effect is the same as following a certain internal link would be… but the issue is pre-existing and unrelated to #318.)
From a bit of debugging, what's happening is that the
GestureDetector
that belongs to a recipient header is firing — specifically the one for the recipient header that's currently sticky, shown at the top of the viewport.Presumably this is a bug in our own
sticky_header.dart
. It'd probably be in the implementation ofhitTestChildren
.It looks like the tests I wrote don't ever attempt to tap on the list items, or the headers, to check that the gesture gets routed to the right place. They go through a comprehensive set of scenarios with the different options, and with scrolling to different positions, but only inspect the reported layout and not the response to gestures. So one thing to include in a fix for this issue will be to add some gestures to those tests.
The text was updated successfully, but these errors were encountered: