mirror of
https://github.com/9001/copyparty.git
synced 2026-01-14 00:32:40 -07:00
round bad floating point arithmetic
This commit is contained in:
parent
867237d06a
commit
ad3a2b57ad
|
|
@ -2449,7 +2449,7 @@ function mpause(e) {
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
dist *= -1;
|
dist *= -1;
|
||||||
mp.setvol(mp.vol + dist / 500);
|
mp.setvol(Math.round((mp.vol + dist / 500) * 100) / 100 );
|
||||||
vbar.draw();
|
vbar.draw();
|
||||||
ev(e);
|
ev(e);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue