diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2016-03-02 16:13:13 -0800 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2016-03-03 16:49:35 -0700 |
commit | 7886ff9acdbc4961359725536c1a15e2cbb3d4f5 (patch) | |
tree | 1243ddf9e5b337b0b8ad91eabc269ce429072a4b /src/api/wayland | |
parent | 2638db665afc175cf128c3e25bc883f4c114bb5a (diff) | |
download | glutin-7886ff9acdbc4961359725536c1a15e2cbb3d4f5.tar.gz glutin-7886ff9acdbc4961359725536c1a15e2cbb3d4f5.zip |
Add phases to wheel events.
Needed for apps to support overscroll on the Mac.
Diffstat (limited to 'src/api/wayland')
-rw-r--r-- | src/api/wayland/events.rs | 6 |
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 +} |