mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
80433f7ea0
commit
e01c5cd863
2 changed files with 28 additions and 13 deletions
|
@ -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 => { }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue