Add phases to wheel events.

Needed for apps to support overscroll on the Mac.
This commit is contained in:
Patrick Walton 2016-03-02 16:13:13 -08:00 committed by Jack Moffitt
parent 2638db665a
commit 7886ff9acd
5 changed files with 19 additions and 10 deletions

View file

@ -31,7 +31,7 @@ pub enum Event {
MouseMoved((i32, i32)),
/// A mouse wheel movement or touchpad scroll occurred.
MouseWheel(MouseScrollDelta),
MouseWheel(MouseScrollDelta, TouchPhase),
/// An event from the mouse has been received.
MouseInput(ElementState, MouseButton),