From 1ecbc3ed8eef10091f59b782c8ff9092fa5e339b Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Thu, 18 Sep 2025 09:17:48 -0400 Subject: [PATCH] fix(audio): respect amplification config for scroll --- cosmic-applet-audio/src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cosmic-applet-audio/src/lib.rs b/cosmic-applet-audio/src/lib.rs index 2d89db52..97b6b8ea 100644 --- a/cosmic-applet-audio/src/lib.rs +++ b/cosmic-applet-audio/src/lib.rs @@ -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) });