sound/backlight: Invert scroll direction

Fixes #3.
This commit is contained in:
Kenny Levinsen
2019-08-08 16:33:27 +02:00
parent bb6c540441
commit 461b34e5cb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ impl ModuleImpl for Backlight {
x: _x, x: _x,
y, y,
} => { } => {
self.add(y as f32 / 800.0).unwrap(); self.add(y as f32 / -800.0).unwrap();
match self.sync() { match self.sync() {
Ok(val) => val, Ok(val) => val,
Err(err) => { Err(err) => {
+1 -1
View File
@@ -478,7 +478,7 @@ impl ModuleImpl for PulseAudio {
self.device self.device
.lock() .lock()
.unwrap() .unwrap()
.set_volume(y as f32 / 800.0) .set_volume(y as f32 / -800.0)
.unwrap(); .unwrap();
} }
Input::Click { pos: _pos, button } => match button { Input::Click { pos: _pos, button } => match button {