-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
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] |
src/styles/styles.js
Outdated
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 |
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-window
and 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 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
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