Skip to content

Commit

Permalink
Fix viewport when using nested scrollables
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Feb 1, 2025
1 parent 447f5ae commit 7336a18
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions widget/src/scrollable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
);
},
Expand Down Expand Up @@ -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
},
);
}
Expand Down

0 comments on commit 7336a18

Please sign in to comment.