mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:46:01 +01:00
Fix scroll down and up in double-page mode.
This commit is contained in:
parent
a9d3d390ad
commit
6518472d89
1 changed files with 6 additions and 2 deletions
|
@ -385,8 +385,12 @@ sc_navigate(girara_session_t* session, girara_argument_t* argument,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((new_page < 0 || new_page >= number_of_pages) && !scroll_wrap) {
|
if (!scroll_wrap) {
|
||||||
return false;
|
if (new_page <= 0) {
|
||||||
|
new_page = 0;
|
||||||
|
} else if (new_page >= number_of_pages) {
|
||||||
|
new_page = number_of_pages - 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
page_set(zathura, new_page);
|
page_set(zathura, new_page);
|
||||||
|
|
Loading…
Reference in a new issue