fix(audio): respect amplification config for scroll

This commit is contained in:
Ashley Wulber 2025-09-18 09:17:48 -04:00 committed by Ashley Wulber
parent 1e185dff4e
commit 1ecbc3ed8e

View file

@ -717,7 +717,14 @@ impl cosmic::Application for Audio {
return Message::Ignore;
}
let new_volume = (self.output_volume + (scroll_vector as f64)).clamp(0.0, 150.0);
let new_volume = (self.output_volume + (scroll_vector as f64)).clamp(
0.0,
if self.output_amplification {
150.0
} else {
100.0
},
);
Message::SetOutputVolume(new_volume)
});