Invert scroll direction
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ impl ModuleImpl for Backlight {
|
|||||||
x: _x,
|
x: _x,
|
||||||
y,
|
y,
|
||||||
} => {
|
} => {
|
||||||
self.add((y * -1.0) as f32 / 8.0).unwrap();
|
self.add(y as f32 / 8.0).unwrap();
|
||||||
self.sync().unwrap();
|
self.sync().unwrap();
|
||||||
}
|
}
|
||||||
Input::Click { pos: _pos, button } => {
|
Input::Click { pos: _pos, button } => {
|
||||||
|
|||||||
+1
-1
@@ -498,7 +498,7 @@ impl ModuleImpl for Arc<Mutex<PulseAudio>> {
|
|||||||
.device
|
.device
|
||||||
.lock()
|
.lock()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.set_volume((y * -1.0) as f32 / 8.0)
|
.set_volume(y as f32 / 8.0)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
s.dirty = true;
|
s.dirty = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user