From a5e9c12651a68fbb18439bc475e754b9eae29a46 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) {