Fix jumps when new message appears while user scrolled up#88536
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@ShridharGoel Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-04-24.at.10.37.09.PM.movAndroid: mWeb ChromeiOS: HybridAppScreen.Recording.2026-04-24.at.10.40.48.PM.moviOS: mWeb SafariScreen.Recording.2026-04-24.at.10.33.10.PM.movMacOS: Chrome / SafariScreen.Recording.2026-04-24.at.10.30.00.PM.mov |
|
@VickyStash I'm still able to repro the same issue (also notice that the new message pill is also not showing on the top) Screen.Recording.2026-04-22.at.10.28.54.PM.mov |
@ShridharGoel Can you please provide the steps for reproduction, so I can repro it on my end? |
|
|
@ShridharGoel I can't reproduce it on my end. |
|
Hi, @VickyStash is on sick leave and I'll be replacing her. @ShridharGoel if you have any request, please tag me |
|
🚧 @Julesssss has triggered a test Expensify/App build. You can view the workflow run here. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
|
🚧 @mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.3.62-5 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. The changes are purely internal UI bug fixes to FlashList scroll behavior ( |
|
Deploy Blocker #88955 was identified to be related to this PR. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.3.64-0 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
When a new report action arrives, and the user is scrolled up in the chat history, the inverted FlashList re-layout can shift the content under the user position, causing a visible jump. This happens because
maintainVisibleContentPosition(MVCP) was only engaged during the deep-link handoff and then permanently disabled, leaving nothing to pin the visible anchor when items are prepended to the inverted list later.This PR re-enables MVCP when the user is scrolled away from the bottom (offset > 250px, matching
ACTION_VISIBLE_THRESHOLD), so newly arriving messages no longer push the current viewport around.Fixed Issues
$ #88238
PROPOSAL: N/A
Tests
Note: badge won't be visible if user is below or at banner position.
Additional WEB test:
Additional iOS test:
Offline tests
Same, as in Tests section
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same, as in Tests section
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mp4
Android: mWeb Chrome
android_web.mp4
iOS: Native
ios.mov
ios1.mov
iOS: mWeb Safari
ios_web.mov
MacOS: Chrome / Safari
web.mp4
web1.mp4