diff options
author | Timo <16718859+toger5@users.noreply.github.com> | 2020-03-02 06:32:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 08:32:18 +0300 |
commit | f83d55f0f05aeec943115e9c767e5c221d7f4317 (patch) | |
tree | 57eb833daf4ea4db13a05db6ea8b6b09f745c629 /alacritty/src/event.rs | |
parent | 1972cce8a4226dbe278e0a3b5d16fa13937e0463 (diff) | |
download | r-alacritty-f83d55f0f05aeec943115e9c767e5c221d7f4317.tar.gz r-alacritty-f83d55f0f05aeec943115e9c767e5c221d7f4317.tar.bz2 r-alacritty-f83d55f0f05aeec943115e9c767e5c221d7f4317.zip |
Fix ignoring of slow touchpad scrolling
Fixes #3377.
Diffstat (limited to 'alacritty/src/event.rs')
-rw-r--r-- | alacritty/src/event.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs index 587a5078..5888140f 100644 --- a/alacritty/src/event.rs +++ b/alacritty/src/event.rs @@ -272,7 +272,7 @@ pub struct Mouse { pub right_button_state: ElementState, pub last_click_timestamp: Instant, pub click_state: ClickState, - pub scroll_px: i32, + pub scroll_px: f64, pub line: Line, pub column: Column, pub cell_side: Side, @@ -292,11 +292,11 @@ impl Default for Mouse { middle_button_state: ElementState::Released, right_button_state: ElementState::Released, click_state: ClickState::None, - scroll_px: 0, + scroll_px: 0., line: Line(0), column: Column(0), cell_side: Side::Left, - lines_scrolled: 0.0, + lines_scrolled: 0., block_url_launcher: false, last_button: MouseButton::Other(0), inside_grid: false, |