[PATCH] fixes behaviour of Page Up key
Submitted by Peter Collingbourne
Link to original bug (#508057)
Description
Please describe the problem: When scrolling a document up in non-continuous mode using the Page Up key and you are at the top of the page you would normally expect the document viewer to show you the bottom of the previous page. In fact this is implemented in ev-view.c lines 636-662. However due to a bug Evince will reset the current scroll position when the new page is displayed to a few pixels from the top (which may be useful for scrolling up multiple pages but is doubly infuriating as you now have to page up twice to see the previous page). The attached patch fixes that bug. Applies to svn trunk
Steps to reproduce:
- Load a document with 2 or more pages
- go to top of page 2
- hit Page Up
Actual results: Evince goes to top of page 1
Expected results: Evince goes to bottom of page 1
Does this happen every time? yes
Other information:
Version: git master