mirror of
https://github.com/9001/copyparty.git
synced 2026-02-19 11:54:58 -05:00
fix audio-volume scrollwheel imprecision (#1054)
This commit is contained in:
@@ -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);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user