Send mouse move events to the the previous layer when directing events to a new one for the first time. Resolves #7865.

This commit is contained in:
Josh Matthews 2015-11-04 03:40:13 -05:00
parent 4b9fa13f2f
commit 9529196d2f
4 changed files with 41 additions and 12 deletions

View file

@ -187,8 +187,8 @@ pub enum CompositorEvent {
MouseDownEvent(MouseButton, Point2D<f32>),
/// A mouse button was released on a point.
MouseUpEvent(MouseButton, Point2D<f32>),
/// The mouse was moved over a point.
MouseMoveEvent(Point2D<f32>),
/// The mouse was moved over a point (or was moved out of the recognizable region).
MouseMoveEvent(Option<Point2D<f32>>),
/// A touch event was generated with a touch ID and location.
TouchEvent(TouchEventType, TouchId, Point2D<f32>),
/// A key was pressed.