-
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 scrolling down on edit composer scroll up the page #31271
Fix scrolling down on edit composer scroll up the page #31271
Conversation
@@ -33,7 +33,6 @@ function PreRenderer(props) { | |||
const horizontalOverflow = node.scrollWidth > node.offsetWidth; | |||
if (event.currentTarget === node && horizontalOverflow && !debouncedIsScrollingVertically(event)) { | |||
node.scrollLeft += event.deltaX; | |||
event.stopPropagation(); |
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.
Just realized that this issue also happens with a code block. To reproduce it, scroll the code block horizontally and then vertically. The vertical scroll will be in reverse.
Been having issues with Android mWeb testing on the simulator. I will complete the review today. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari31271-web.mp4MacOS: Desktop31271-desktop.mp4 |
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.
Tests well.
✋ 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 production by https://github.com/luacmartins in version: 1.4.1-13 🚀
|
Details
When we do scroll inside an edit composer, the page scroll will be in reverse.
Fixed Issues
$ #30987
PROPOSAL: #30987 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Web/Desktop
NOTE: scroll using a mouse wheel or laptop touch pad.
*example:
Android/iOS/mWeb
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)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
Android: Native
Screen.Recording.2023-11-14.at.00.46.00.mov
Android: mWeb Chrome
Screen.Recording.2023-11-14.at.00.49.30.mov
iOS: Native
Screen.Recording.2023-11-14.at.00.44.34.mov
iOS: mWeb Safari
Screen.Recording.2023-11-14.at.00.47.35.mov
MacOS: Chrome / Safari
Screen.Recording.2023-11-14.at.00.42.59.mov
MacOS: Desktop
Screen.Recording.2023-11-14.at.00.43.50.mov