mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix scroll_sensitivity related naming issue (#35462)
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
parent
03fc54e682
commit
3e1d15da9b
4 changed files with 8 additions and 8 deletions
|
@ -315,7 +315,7 @@ impl CompositorDisplayListInfo {
|
|||
content_size: LayoutSize,
|
||||
pipeline_id: PipelineId,
|
||||
epoch: Epoch,
|
||||
root_scroll_sensitivity: AxesScrollSensitivity,
|
||||
viewport_scroll_sensitivity: AxesScrollSensitivity,
|
||||
) -> Self {
|
||||
let mut scroll_tree = ScrollTree::default();
|
||||
let root_reference_frame_id = scroll_tree.add_scroll_tree_node(
|
||||
|
@ -329,7 +329,7 @@ impl CompositorDisplayListInfo {
|
|||
Some(ScrollableNodeInfo {
|
||||
external_id: ExternalScrollId(0, pipeline_id),
|
||||
scrollable_size: content_size - viewport_size,
|
||||
scroll_sensitivity: root_scroll_sensitivity,
|
||||
scroll_sensitivity: viewport_scroll_sensitivity,
|
||||
offset: LayoutVector2D::zero(),
|
||||
}),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue