Differentiate clearly how child layers handle scroll events

This allows the scroll handler to know if a child layer didn't handle
an event or the scroll position of the child layer was simply unchanged.
This commit is contained in:
Martin Robinson 2014-09-23 16:38:52 -07:00
parent 80433f7ea0
commit e01c5cd863
2 changed files with 28 additions and 13 deletions

View file

@ -9,6 +9,7 @@ use compositor_task::{SetLayerOrigin, Paint, ScrollFragmentPoint, LoadComplete};
use compositor_task::{ShutdownComplete, ChangeRenderState, RenderMsgDiscarded};
use constellation::SendableFrameTree;
use events;
use events::ScrollPositionChanged;
use pipeline::CompositionPipeline;
use platform::{Application, Window};
use windowing;
@ -766,7 +767,7 @@ impl IOCompositor {
delta,
cursor.as_f32(),
window_size,
scene_scale) || scroll;
scene_scale) == ScrollPositionChanged;
}
None => { }
}