mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-14 21:25:59 +01:00
Merge branch 'issue-52' into 'develop'
Account for page padding on full scroll Closes #52 See merge request pwmt/zathura!43
This commit is contained in:
commit
526f632edf
1 changed files with 3 additions and 2 deletions
|
@ -587,8 +587,9 @@ sc_scroll(girara_session_t* session, girara_argument_t* argument,
|
||||||
direction = -1.0;
|
direction = -1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const double vstep = (double)view_height / (double)doc_height;
|
unsigned int pad = zathura_document_get_page_padding(zathura->document);
|
||||||
const double hstep = (double)view_width / (double)doc_width;
|
const double vstep = (double)(view_height + pad) / (double)doc_height;
|
||||||
|
const double hstep = (double)(view_width + pad) / (double)doc_width;
|
||||||
|
|
||||||
/* compute new position */
|
/* compute new position */
|
||||||
switch (argument->n) {
|
switch (argument->n) {
|
||||||
|
|
Loading…
Reference in a new issue