mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 10:36:00 +01:00
Resolve page-jumping while zooming on last page
Resolves the problem of jumping to a wrong possition that occured while zooming on the last page of the document Fixes: #166
This commit is contained in:
parent
9e643d4224
commit
b7b8f53cbe
1 changed files with 2 additions and 2 deletions
4
utils.c
4
utils.c
|
@ -323,8 +323,8 @@ readjust_view_after_zooming(zathura_t *zathura, float old_zoom) {
|
|||
double scale = zathura_document_get_scale(zathura->document);
|
||||
gdouble valx = gtk_adjustment_get_value(hadjustment) / old_zoom * scale;
|
||||
gdouble valy = gtk_adjustment_get_value(vadjustment) / old_zoom * scale;
|
||||
set_adjustment(hadjustment, valx);
|
||||
set_adjustment(vadjustment, valy);
|
||||
|
||||
position_set_delayed(zathura, valx, valy);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue