mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 14:46:00 +01:00
Test your commits before you push
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
9e1166c911
commit
d0bb3b8983
1 changed files with 3 additions and 3 deletions
|
@ -599,8 +599,8 @@ sc_scroll(girara_session_t* session, girara_argument_t* argument,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BIDIRECTIONAL: {
|
case BIDIRECTIONAL: {
|
||||||
pos_x += event.x * t * scroll_hstep / (double)doc_width;
|
pos_x += event->x * t * scroll_hstep / (double)doc_width;
|
||||||
pos_y += event.y * t * scroll_step / (double)doc_height;
|
pos_y += event->y * t * scroll_step / (double)doc_height;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1382,7 +1382,7 @@ sc_zoom(girara_session_t* session, girara_argument_t* argument, girara_event_t*
|
||||||
zathura_document_set_scale(zathura->document, t / 100.0);
|
zathura_document_set_scale(zathura->document, t / 100.0);
|
||||||
}
|
}
|
||||||
} else if (argument->n == ZOOM_SMOOTH) {
|
} else if (argument->n == ZOOM_SMOOTH) {
|
||||||
const double dy = event.y;
|
const double dy = event->y;
|
||||||
zathura_document_set_scale(zathura->document, old_zoom + zoom_step * dy);
|
zathura_document_set_scale(zathura->document, old_zoom + zoom_step * dy);
|
||||||
} else {
|
} else {
|
||||||
zathura_document_set_scale(zathura->document, 1.0);
|
zathura_document_set_scale(zathura->document, 1.0);
|
||||||
|
|
Loading…
Reference in a new issue