Commit ba485ba
authored
After aligning the animated header's date with the visible group, the
floating header could briefly show the same date as the inline day
separator while that separator was still on screen, producing a stacked
duplicate date badge during scroll.
Gate the floating header's opacity on relativeScrolledPositionToBottomOfDay:
only show it once the current day's inline separator has scrolled off the
top (< 0). While the inline separator is still visible (>= 0) it already
shows the date, so the floating copy stays hidden - a clean handoff with no
duplicate.
1 parent c2fb1c9 commit ba485ba
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
76 | 85 | | |
77 | 86 | | |
78 | 87 | | |
| |||
0 commit comments