fix: apply square curve to volume slider so low positions are genuinely quiet
This commit is contained in:
1 parent
e2c28926b2
commit
7dd22d9639
2 files changed
+4
-2
No files matched your search
+1
-1
@@ -56,7 +56,7 @@ export function syncNowPlaying() {
|
||||
const volSlider = document.getElementById('np-vol-slider');
|
||||
if(shuffleBtn) shuffleBtn.classList.toggle('active', S.shuffle);
|
||||
if(repeatBtn) repeatBtn.classList.toggle('active', S.repeat !== false);
|
||||
if(volSlider) volSlider.value = Math.round(S.audio.volume * 100);
|
||||
if(volSlider) volSlider.value = Math.round(Math.sqrt(S.audio.volume) * 100);
|
||||
const playing = !S.audio.paused;
|
||||
const npIcon = document.getElementById('np-play-icon');
|
||||
if(npIcon) npIcon.innerHTML = playing
|
||||
|
||||
Reference in new issue
Block a user