From 22fa4260fc9210fbb5288090df79c92e7b3788e4 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Sat, 2 Sep 2017 20:29:03 +0100 Subject: Fix #721: touchpad scrolling (#726) --- src/event.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/event.rs') diff --git a/src/event.rs b/src/event.rs index 4cfd0d57..95685001 100644 --- a/src/event.rs +++ b/src/event.rs @@ -145,7 +145,8 @@ pub struct Mouse { pub scroll_px: i32, pub line: Line, pub column: Column, - pub cell_side: Side + pub cell_side: Side, + pub lines_scrolled: f32, } impl Default for Mouse { @@ -160,6 +161,7 @@ impl Default for Mouse { line: Line(0), column: Column(0), cell_side: Side::Left, + lines_scrolled: 0.0, } } } -- cgit v1.2.3-54-g00ecf