Fix scrolling down on edit composer scroll up the page#31271
Merged
tgolen merged 2 commits intoNov 17, 2023
Conversation
bernhardoj
commented
Nov 13, 2023
| const horizontalOverflow = node.scrollWidth > node.offsetWidth; | ||
| if (event.currentTarget === node && horizontalOverflow && !debouncedIsScrollingVertically(event)) { | ||
| node.scrollLeft += event.deltaX; | ||
| event.stopPropagation(); |
Contributor
Author
There was a problem hiding this comment.
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.
Contributor
|
Been having issues with Android mWeb testing on the simulator. I will complete the review today. |
Contributor
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari31271-web.mp4MacOS: Desktop31271-desktop.mp4 |
tgolen
approved these changes
Nov 17, 2023
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
90 tasks
Closed
6 tasks
Contributor
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.1-13 🚀
|
Closed
6 tasks
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.




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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
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