fix: more accurate volume in contrast to spotify

This commit is contained in:
trafficlunar 2026-03-11 21:37:07 +00:00
parent 11add72f2c
commit 738304a680

View file

@ -155,7 +155,7 @@ export function registerEvents() {
currentVolume = args[0]; currentVolume = args[0];
if (hijackActive) { if (hijackActive) {
audio.volume = Math.pow(currentVolume, 3); audio.volume = Math.pow(currentVolume, 3) * 0.425;
if (volumeSlider) volumeSlider.style.setProperty("--progress-bar-transform", `${currentVolume * 100}%`); if (volumeSlider) volumeSlider.style.setProperty("--progress-bar-transform", `${currentVolume * 100}%`);
return; return;
} }