mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-08 14:35:59 +01:00
Update scroll behaviour for half/full page scrolling
This commit is contained in:
parent
a61192c314
commit
2d0e05ec8b
1 changed files with 2 additions and 2 deletions
|
@ -1602,7 +1602,7 @@ sc_scroll(Argument* argument)
|
||||||
gdouble value = gtk_adjustment_get_value(adjustment);
|
gdouble value = gtk_adjustment_get_value(adjustment);
|
||||||
gdouble max = gtk_adjustment_get_upper(adjustment) - view_size;
|
gdouble max = gtk_adjustment_get_upper(adjustment) - view_size;
|
||||||
|
|
||||||
if(argument->n == UP && value == 0)
|
if((argument->n == UP || argument->n == HALF_UP || argument->n == FULL_UP) && value == 0)
|
||||||
{
|
{
|
||||||
Argument arg;
|
Argument arg;
|
||||||
arg.n = PREVIOUS;
|
arg.n = PREVIOUS;
|
||||||
|
@ -1610,7 +1610,7 @@ sc_scroll(Argument* argument)
|
||||||
arg.n = BOTTOM;
|
arg.n = BOTTOM;
|
||||||
sc_scroll(&arg);
|
sc_scroll(&arg);
|
||||||
}
|
}
|
||||||
else if(argument->n == DOWN && value == max)
|
else if((argument->n == DOWN || argument->n == HALF_DOWN || argument->n == FULL_DOWN) && value == max)
|
||||||
{
|
{
|
||||||
Argument arg;
|
Argument arg;
|
||||||
arg.n = NEXT;
|
arg.n = NEXT;
|
||||||
|
|
Loading…
Reference in a new issue