mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 02:24:56 +01:00
readd scroll-step
This commit is contained in:
parent
7a5dd056fd
commit
d31a350f23
1 changed files with 5 additions and 0 deletions
|
@ -235,6 +235,11 @@ sc_scroll(girara_session_t* session, girara_argument_t* argument, unsigned int
|
|||
gdouble value = gtk_adjustment_get_value(adjustment);
|
||||
gdouble max = gtk_adjustment_get_upper(adjustment) - view_size;
|
||||
gdouble scroll_step = 40;
|
||||
float* tmp = girara_setting_get(session, "scroll-step");
|
||||
if (tmp != NULL) {
|
||||
scroll_step = *tmp;
|
||||
g_free(tmp);
|
||||
}
|
||||
gdouble new_value;
|
||||
|
||||
switch(argument->n) {
|
||||
|
|
Loading…
Reference in a new issue