-
Notifications
You must be signed in to change notification settings - Fork 3.5k
User can scroll PDF by using the down/up arrow of keyboard #24363
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
User can scroll PDF by using the down/up arrow of keyboard #24363
Conversation
|
@0xmiroslav 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] |
| overflowX: 'hidden', | ||
| boxShadow: 'none', | ||
| outline: 'none', |
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.
It would be good to add comment here as well.
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.
Done - df5c307.
|
Confirmed happening on main |
Reviewer Checklist
Screenshots/VideosWebChrome, Safari: Screen.Recording.2023-08-10.at.11.51.52.PM.movMobile Web - ChromeMobile Web - SafariIncluded in web DesktopScreen.Recording.2023-08-10.at.11.55.54.PM.moviOSAndroid |
situchan
left a comment
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.
![]()
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
User can scroll PDF by using the down/up arrow of keyboard (cherry picked from commit 3f037a9)
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.3.52-5 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.52-5 🚀
|

Details
This is a regression fix of #22760. We integrated
react-windowand this library does not support by default scrolling by keyboard arrows. These changes allows browsers to focus on a list component to get a default and smooth browser behaviour.Fixed Issues
$ #19918, #24326
PROPOSAL: N/A
Tests
NOTE: Safari does not support to scroll by the Keyboard Viewer. Once you open it, you should quit Safari and launch again (close the the Keyboard Viewer as well). It means only a real keyboard works with Safari to scroll by the arrows.
Example
Keyboard.Safari.BUG.mp4
Offline tests
Same as "Tests"
QA Steps
Same as "Tests"
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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)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
Web
Scroll.Chrome.mp4
Safari.mp4
Mobile Web - Chrome
IOS.Chrome.mp4
Android.Chrome.mp4
Mobile Web - Safari
IOS.Safari.mp4
Desktop
Desktop.mp4
iOS
Android