mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 09:13:45 +01:00
Fix scroll_wrap logic on first and last page. (Closes #52)
Thanks egl209 for the patch.
This commit is contained in:
parent
53c8420f8a
commit
c190386f9e
@ -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