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 53ae144b32
commit b9b4b8ef1f

View File

@ -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)
{