-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Add a new Page scrolling mode (issue 2638, 8952, 10907) #14112
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
Conversation
5e239e2
to
c346f10
Compare
fa6f3ec
to
e4cf1e2
Compare
e4cf1e2
to
52edfd1
Compare
Thanks @Snuffleupagus, I think it was one of the last big missing UX features in this project. Happy to see this coming ! |
52edfd1
to
3ba5d9e
Compare
14bb51a
to
2cbc758
Compare
This implements a new Page scrolling mode, essentially bringing (and extending) the functionality from `PDFSinglePageViewer` into the regular `PDFViewer`-class. Compared to `PDFSinglePageViewer`, which as its name suggests will only display one page at a time, in the `PDFViewer`-implementation this new Page scrolling mode also support spreadModes properly (somewhat similar to e.g. Adobe Reader). Given the size and scope of these changes, I've tried to focus on implementing the basic functionality. Hence there's room for further clean-up and/or improvements, including e.g. simplifying the CSS/JS related to PresentationMode and implementing easier page-switching with the mouse-wheel/arrow-keys.
With the previous commit, both of the `PDFViewer` and `PDFSinglePageViewer` clases are now small/simple enough that it no longer seems necessary to keep them in separate files.
2cbc758
to
e1a2e91
Compare
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/fe02baa63f4b2a2/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/fe02baa63f4b2a2/output.txt Total script time: 4.36 mins Published |
Nice implementation! It helped that you limited the scope here because it was indeed quite some code to review carefully. |
@timvandermeij Thank you so much for reviewing this; I know it cannot have been easy! |
This implements a new Page scrolling mode, essentially bringing (and extending) the functionality from
PDFSinglePageViewer
into the regularPDFViewer
-class. Compared toPDFSinglePageViewer
, which as its name suggests will only display one page at a time, in thePDFViewer
-implementation this new Page scrolling mode also support spreadModes properly (somewhat similar to e.g. Adobe Reader).Given the size and scope of these changes, I've tried to focus on implementing the basic functionality. Hence there's room for further clean-up and/or improvements, including e.g. simplifying the CSS/JS related to PresentationMode and implementing easier page-switching with the mouse-wheel/arrow-keys.
Fixes #2638
Fixes #8952
Fixes #10907