Commit a5e9c126 authored by Pavel Borzenkov's avatar Pavel Borzenkov Committed by Sebastian Ramacher
Browse files

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: default avatarPavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: default avatarSebastian Ramacher <s.ramacher@gmx.at>
parent ac4faec4
......@@ -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)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment