From 2d0e05ec8b5bbe81d9c55b2609ce97b13b928b6f Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Mon, 14 Jun 2010 17:22:06 +0200 Subject: [PATCH] Update scroll behaviour for half/full page scrolling --- zathura.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zathura.c b/zathura.c index 4eddd03..3fc8c96 100644 --- a/zathura.c +++ b/zathura.c @@ -1602,7 +1602,7 @@ sc_scroll(Argument* argument) gdouble value = gtk_adjustment_get_value(adjustment); 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; arg.n = PREVIOUS; @@ -1610,7 +1610,7 @@ sc_scroll(Argument* argument) arg.n = BOTTOM; 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; arg.n = NEXT;