From b9b4b8ef1f2d69817c1252f1447e4d4171c10a47 Mon Sep 17 00:00:00 2001 From: Pavel Borzenkov Date: Tue, 5 Jul 2011 10:20:59 +0400 Subject: [PATCH] Don't update status bar when scrolling left/right Don't update Zathura.State.scroll_percentage when scrolling left/right to avoid wrong values in the status bar. Signed-off-by: Pavel Borzenkov Signed-off-by: Sebastian Ramacher --- zathura.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zathura.c b/zathura.c index 6c71a29..69108f6 100644 --- a/zathura.c +++ b/zathura.c @@ -2299,7 +2299,8 @@ sc_scroll(Argument* argument) else new_value = (value + scroll_step) > max ? max : (value + scroll_step); - Zathura.State.scroll_percentage = max == 0 ? 0 : (new_value*100/max); + if( !((argument->n == LEFT) || (argument->n == RIGHT)) ) + Zathura.State.scroll_percentage = max == 0 ? 0 : (new_value*100/max); if(smooth_scrolling && !ss) {