aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/wayland
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2016-03-04 01:28:43 +0100
committerPaul Rouget <me@paulrouget.com>2016-03-04 01:28:43 +0100
commite843206c1303475678482f623477408468b8a74b (patch)
tree1243ddf9e5b337b0b8ad91eabc269ce429072a4b /src/api/wayland
parent2638db665afc175cf128c3e25bc883f4c114bb5a (diff)
parent7886ff9acdbc4961359725536c1a15e2cbb3d4f5 (diff)
downloadglutin-e843206c1303475678482f623477408468b8a74b.tar.gz
glutin-e843206c1303475678482f623477408468b8a74b.zip
Merge pull request #735 from metajack/overscroll-tomaka
Add phases to wheel events.
Diffstat (limited to 'src/api/wayland')
-rw-r--r--src/api/wayland/events.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/api/wayland/events.rs b/src/api/wayland/events.rs
index 8b18020..5e0c3fd 100644
--- a/src/api/wayland/events.rs
+++ b/src/api/wayland/events.rs
@@ -1,5 +1,6 @@
use std::collections::HashSet;
+use TouchPhase;
use Event as GlutinEvent;
use ElementState;
use MouseButton;
@@ -98,7 +99,8 @@ pub fn translate_event(
WlPointerAxis::HorizontalScroll => {
MouseScrollDelta::PixelDelta(0.0, amplitude as f32)
}
- }
+ },
+ TouchPhase::Moved
), surface))
} else {
None
@@ -107,4 +109,4 @@ pub fn translate_event(
},
_ => None
}
-} \ No newline at end of file
+}