mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 08:27:31 +01:00
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:
parent
53ae144b32
commit
b9b4b8ef1f
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue