mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 12:43:45 +01:00
Merge remote-tracking branch 'haggl/develop' into develop
This commit is contained in:
commit
4e33ae66dd
10
shortcuts.c
10
shortcuts.c
@ -507,12 +507,14 @@ sc_scroll(girara_session_t* session, girara_argument_t* argument,
|
|||||||
|
|
||||||
/* If PAGE_TOP or PAGE_BOTTOM, go there and we are done */
|
/* If PAGE_TOP or PAGE_BOTTOM, go there and we are done */
|
||||||
if (argument->n == PAGE_TOP) {
|
if (argument->n == PAGE_TOP) {
|
||||||
page_number_to_position(zathura->document, page_id, 0.5, 0.0, &pos_x, &pos_y);
|
double dontcare = 0.5;
|
||||||
position_set(zathura, -1, pos_y);
|
page_number_to_position(zathura->document, page_id, dontcare, 0.0, &dontcare, &pos_y);
|
||||||
|
position_set(zathura, pos_x, pos_y);
|
||||||
return false;
|
return false;
|
||||||
} else if (argument->n == PAGE_BOTTOM) {
|
} else if (argument->n == PAGE_BOTTOM) {
|
||||||
page_number_to_position(zathura->document, page_id, 0.5, 1.0, &pos_x, &pos_y);
|
double dontcare = 0.5;
|
||||||
position_set(zathura, -1, pos_y);
|
page_number_to_position(zathura->document, page_id, dontcare, 1.0, &dontcare, &pos_y);
|
||||||
|
position_set(zathura, pos_x, pos_y);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user