fix: inverted flatlist overscroll recoil#68895
Conversation
|
|
|
@hungvu193 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] |
0812807 to
1bf3c29
Compare
1bf3c29 to
6ce4953
Compare
|
Thanks @wgsquayson. I took a few tests and I think it's fixed 🎉 . Could you share a bit more about the RCA and solution so I could have more context? Ty |
|
Hey @hungvu193
|
This comment has been minimized.
This comment has been minimized.
|
For some reason the ad-hoc build didn't work, restarting it now |
|
started a new build here: https://github.com/Expensify/App/actions/runs/17134727083 |
|
🚧 @blimpich 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, Desktop, and Web. Happy testing! 🧪🧪
|
|
@wgsquayson Thanks for your detailed explanation 🙏 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2025-08-21.at.18.11.28.movMacOS: DesktopScreen.Recording.2025-08-21.at.18.10.11.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #66821 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
blimpich
left a comment
There was a problem hiding this comment.
Tested this locally and it works! Nice job!! 👍
|
✋ 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/blimpich in version: 9.1.99-0 🚀
|
|
FYI the PR for this caused the deploy blocker here and we are reverting it: #69262 |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.99-11 🚀
|
Explanation of Change
This PR aims to fix the perceived overscroll recoil or rubber band effect of the inverted flatlists, introduced on react-native-web's patch 008. It happened because the
ev.preventDefaulton the inverted wheel event handler was not being fired when the scroll reached the list edges. It does not affect the bidirectional scroll introduced on patches 008 and 009 of react-native-web.Fixed Issues
$ #66821
PROPOSAL: Add a conditional on the inverted wheel handler to execute
ev.preventDefaultwhen the scrolling reaches the list edges.Tests
PS: It's only reproducible on web/desktop
PS2: It's not reproducible with a mouse, only with a trackpad.
rm -rf node_modulesnpm installOffline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
MacOS: Chrome / Safari
A new project showing that the bidirectional scroll is still working, with the same inverted flatlist wheel handler
dumb-project.mov
chrome.mov
MacOS: Desktop
safari.mov