mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 18:03:46 +01:00
Fix scroll_wrap logic on first and last page. (Closes #52)
Thanks egl209 for the patch.
This commit is contained in:
parent
5ce01cefe8
commit
42673a8474
@ -2320,7 +2320,7 @@ sc_scroll(Argument* argument)
|
|||||||
Argument arg;
|
Argument arg;
|
||||||
arg.n = PREVIOUS;
|
arg.n = PREVIOUS;
|
||||||
sc_navigate(&arg);
|
sc_navigate(&arg);
|
||||||
if (!scroll_wrap || (Zathura.PDF.page_number < old_page))
|
if (scroll_wrap || (Zathura.PDF.page_number < old_page))
|
||||||
{
|
{
|
||||||
arg.n = BOTTOM;
|
arg.n = BOTTOM;
|
||||||
ss = TRUE;
|
ss = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user