diff --git a/callbacks.c b/callbacks.c index 43d47fe..0f7561d 100644 --- a/callbacks.c +++ b/callbacks.c @@ -165,7 +165,7 @@ cb_view_adjustment_changed(GtkAdjustment* adjustment, zathura_t* zathura, /* reset the adjustment, in case bounds have changed */ const double ratio = width == true ? zathura_document_get_position_x(zathura->document) : - zathura_document_get_position_x(zathura->document); + zathura_document_get_position_y(zathura->document); zathura_adjustment_set_value_from_ratio(adjustment, ratio); }