Fix StickyHeaderContainer NONE/FADE transitions and reduce swap jitter (#4849)#4869
Merged
shai-almog merged 3 commits intomasterfrom May 5, 2026
Merged
Fix StickyHeaderContainer NONE/FADE transitions and reduce swap jitter (#4849)#4869shai-almog merged 3 commits intomasterfrom
shai-almog merged 3 commits intomasterfrom
Conversation
#4849) Addresses the four follow-up problems reported on #4849: - TRANSITION_NONE: stop hiding the sticky host during overlap. Hiding it exposed the bottom of the previous section's content where the slot used to be. The pinned header now stays put until an instant swap. - TRANSITION_FADE: combine the fade with a slide so the rising header visibly fills the slot from below as the pinned header dissolves. With fade alone the slot looked empty for most of the transition because the rising header is well below the slot top until the swap. - Boundary jitter: add a 4-pixel reverse-activation hysteresis. iOS inertia bounces a few pixels past the swap boundary; without hysteresis each bounce flipped the active section, making the pinned header teleport between scroller-tracked and slot-fixed positions. - Transparent header bleed: the sticky host now paints the StickyHeaderContainer's own background under the pinned header, so setting bg on the container itself is enough to keep scroller content from showing through transparent header UIIDs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |
Collaborator
Author
|
Compared 89 screenshots: 89 matched. Native Android coverage
✅ Native Android screenshot tests passed. Native Android coverage
Benchmark ResultsDetailed Performance Metrics
|
Collaborator
Author
|
Compared 89 screenshots: 89 matched. Benchmark Results
Build and Run Timing
Detailed Performance Metrics
|
…d compiles The Android port build runs javac with the JVM platform default encoding (ASCII on the CI runner), so any non-ASCII byte in a .java file under CodenameOne/src fails the build. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
iOS and Android emulator captures of StickyHeaderFadeTransitionScreenshotTest, reassembled from the JDK 8 instrumentation log and the iOS UI tests artifact on the latest run for this PR. Only the FADE golden moved; SLIDE / NONE goldens are byte-identical so they aren't touched. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses the four follow-up problems reported in the last comment of #4849:
StickyHeaderContainer's own background under the pinned header. Setting bg on the container itself is now enough to stop scroller content from showing through transparent header UIIDs.Test plan
mvn test -pl maven/core-unittests -Dtest=StickyHeaderContainerTest— 18/18 pass.noneStyleHidesStickyHostDuringOverlap→noneStyleKeepsStickyHostInPlaceDuringOverlap.fadeStyleReducesStickyHostOpacityWithPush→fadeStyleSlidesAndFadesStickyHostWithPush(covers slide+fade).shortReverseScrollDoesNotFlipActiveSectioncovers the inertia hysteresis.TRANSITION_NONEno longer flashes the previous section's last row when the next header crosses the slot.TRANSITION_FADEshows the rising header visibly approaching the slot rather than popping in at the end.StickyHeaderFadeTransitionScreenshotTest/StickyHeaderScreenshotTestgolden images on the next CI run since FADE/NONE visuals change by design.🤖 Generated with Claude Code