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 <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
This commit is contained in:
Pavel Borzenkov 2011-07-05 10:20:59 +04:00 committed by Sebastian Ramacher
parent ac4faec443
commit a5e9c12651

View File

@ -2299,7 +2299,8 @@ sc_scroll(Argument* argument)
else else
new_value = (value + scroll_step) > max ? max : (value + scroll_step); 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) if(smooth_scrolling && !ss)
{ {