Page down often goes up before end of document and sometimes doesn't reach end of document
Submitted by Christian Stadelmann
Steps to reproduce:
- open attaced PDF file (works for other documents too, but on different zoom levels, see below)
- set zoom level so that a page doesn't fit on screen any more.
- press "Page down" key repeatedly, watch what happens
What happens: When going to the end of the document, pressing the "Page down" key often goes up for less than a page (just some 50…100 pixels). Seems like evince can't handle properly when the distance left is smaller than the distance "assigned" to "Page down" key. Sometimes (on a fullHD 1920x1080 monitor with a zoom level of 175%, for example) this results in never reaching the end of the document. Sometimes (on a fullHD 1920x1080 monitor with a zoom level of 125%, for example), pressing "Page down" on the end of document goes up for a smaller distance 9 times until finally pressing the key again reaches end of document.
This is not a recent regression from 3.20.0
I have also seen that "Page down" key doesn't reach the end of the document but stops before as if it already reached the end.
This issue is present with both x11 and wayland Gdk backends.
Bug #768426 might be related, but I filed a separate one.
Attachment 330888, "A PDF document triggering the behavior described in comment 0":