Commit 526f632e authored by Sebastian Ramacher's avatar Sebastian Ramacher

Merge branch 'issue-52' into 'develop'

Account for page padding on full scroll

Closes #52

See merge request !43
parents 8016b4c8 62204037
Pipeline #372 passed with stages
in 2 minutes and 11 seconds
......@@ -587,8 +587,9 @@ sc_scroll(girara_session_t* session, girara_argument_t* argument,
direction = -1.0;
}
const double vstep = (double)view_height / (double)doc_height;
const double hstep = (double)view_width / (double)doc_width;
unsigned int pad = zathura_document_get_page_padding(zathura->document);
const double vstep = (double)(view_height + pad) / (double)doc_height;
const double hstep = (double)(view_width + pad) / (double)doc_width;
/* compute new position */
switch (argument->n) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment