mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Reimplement scrolling to fragments
This reimplemntation of the feature uses ScrollRootIds to scroll particular scrollable areas of the page. Fixes #13736. Fixes #10753.
This commit is contained in:
parent
39845faf26
commit
0b56bb2237
18 changed files with 154 additions and 45 deletions
|
@ -1032,8 +1032,9 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
|
|||
self.handle_alert(pipeline_id, message, sender);
|
||||
}
|
||||
|
||||
FromScriptMsg::ScrollFragmentPoint(pipeline_id, point, smooth) => {
|
||||
FromScriptMsg::ScrollFragmentPoint(pipeline_id, scroll_root_id, point, smooth) => {
|
||||
self.compositor_proxy.send(ToCompositorMsg::ScrollFragmentPoint(pipeline_id,
|
||||
scroll_root_id,
|
||||
point,
|
||||
smooth));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue