mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 08:53:46 +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
ac4faec443
commit
a5e9c12651
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user