input: Add a scroll_factor config option
This is not a setting handled by libinput; we have to scale the scrolling ourselves. This should match the behavior of the `scroll_factor` defined in sway-input(5).
This commit is contained in:
parent
511ee8d87a
commit
20159a6c8c
4 changed files with 39 additions and 6 deletions
|
|
@ -42,6 +42,7 @@ pub struct ScrollConfig {
|
|||
pub method: Option<ScrollMethod>,
|
||||
pub natural_scroll: Option<bool>,
|
||||
pub scroll_button: Option<u32>,
|
||||
pub scroll_factor: Option<f64>,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue