Fix viewport when using nested scrollables

This commit is contained in:
Héctor Ramón Jiménez 2025-02-01 01:04:36 +01:00
parent 447f5ae494
commit 7336a18443
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -999,9 +999,9 @@ where
content_layout,
cursor,
&Rectangle {
y: bounds.y + translation.y,
x: bounds.x + translation.x,
..bounds
y: visible_bounds.y + translation.y,
x: visible_bounds.x + translation.x,
..visible_bounds
},
);
},
@ -1103,9 +1103,9 @@ where
content_layout,
cursor,
&Rectangle {
x: bounds.x + translation.x,
y: bounds.y + translation.y,
..bounds
x: visible_bounds.x + translation.x,
y: visible_bounds.y + translation.y,
..visible_bounds
},
);
}