-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: prevent scrolling in suggestions popup propagating to layers below #19621
Conversation
@arosiclair @mollfpr One of you needs to 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] |
@aswin-s Could you update the test step? We only need to verify the issue on scrolling for emojis and mentions, and please use the numbered order list. |
Reviewer Checklist
Screenshots/VideosWeb19621.Web.movMobile Web - Chrome19621.mWeb.Chrome.movMobile Web - Safari19621.mWeb.Safari.mp4Desktop19621.Desktop.moviOS19621.iOS.mp4Android19621.Android.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just need to update the test step appropriately.
All yours @arosiclair
Updated the test steps. |
@getusha Is this resolved for you? |
@getusha I don't think so. I also couldn't reproduce the issue you mentioned. May I know how to produce it? |
i was able to reproduce that issue at that time using that prop and remembered it when i see this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
✋ 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/arosiclair in version: 1.3.21-0 🚀
|
Interestingly, I just testing this PR on mWeb iOS/Safari staging (1.3.21.2) and I wasn't able to reliably prevent scrolling. Sometimes it worked and other times it didn't. Check out the recording. Any ideas why this is the case? RPReplay_Final1685564298.MP4 |
@JmillsExpensify iOS Mobile Safari adds white space at the bottom of the page when keyboard is open. There are multiple issues which has discussed this before ( #8731 , #10406 , #8731). So scrolling at the header area or scrolling further after reaching end of the chats actually scrolls the entire page upwards. Further scrolls actually gets handled by this page scroll and disrupts all child scrolls. That's what you are seeing in the video. The original issue this PR is trying to resolve is to prevent scrolling the background when user tries to scroll within the suggestion popup on Android devices. This behaviour is consistent on mWeb when you simply try to add a suggestion and try to scroll within the suggestion area. But once you scroll in the area outside of suggestion, above mentioned bug kicks in and messes up the page scroll position. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.21-2 🚀
|
Details
Fixed Issues
$ #18112
PROPOSAL: #18112 (comment)
Tests
:
(Example -:heart
):
Offline tests
None
QA Steps
:
(Example -:heart
):
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
web.mp4
Mobile Web - Chrome
android-web.mp4
Mobile Web - Safari
ios-web.mp4
Desktop
Desktop.mp4
iOS
ios.mp4
Android
android.mp4