Single page fit scrollbar
Adds a scrollbar for Fit a Single Page display mode, as requested here: https://github.com/sumatrapdfreader/sumatrapdf/issues/191 Scrollbar obeys the HideScrollbars setting in SumatraPDF-settings.txt; if HideScrollbars is true, the scrollbar is hidden, as expected. If HideScrollbars is false, the scrollbar is visible on the right-hand side of the screen.
Unfortunately, Canvas.cpp is reading as being entirely changed. Reading into things this may be a result of how line-endings are stored between different OSes? Sorry that it's ended up being a pain to read.
The changes made to Canvas.cpp:
Line 13: added #include <algorithm>
Lines 107 through 151: added scrollbar logic for when the display mode is single page.
Lines ...uh, 1300~ to 1430~: handling ramifications of the scrollbar still being for the entire document when zoomed into a single page. Rate of scrolling on a single page probably needs to be tweaked.
thanks alot for your attempt hope it works
@Feldherren Turns out you're using LF line endings instead of the project's CRLF ones.
You can ignore whitespace changes when vieing a diff on GitHub: https://github.com/sumatrapdfreader/sumatrapdf/pull/5078/files?diff=split&w=1
Please change to CRLF and commit.