round bad floating point arithmetic

This commit is contained in:
sherman 2025-11-28 22:12:56 -06:00
parent 867237d06a
commit ad3a2b57ad

View file

@ -2449,7 +2449,7 @@ function mpause(e) {
return true;
dist *= -1;
mp.setvol(mp.vol + dist / 500);
mp.setvol(Math.round((mp.vol + dist / 500) * 100) / 100 );
vbar.draw();
ev(e);
};