fix(audio): respect amplification config for scroll
This commit is contained in:
parent
1e185dff4e
commit
1ecbc3ed8e
1 changed files with 8 additions and 1 deletions
|
|
@ -717,7 +717,14 @@ impl cosmic::Application for Audio {
|
||||||
return Message::Ignore;
|
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)
|
Message::SetOutputVolume(new_volume)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue