diff options
author | 2024-05-10 18:50:10 -0300 | |
---|---|---|
committer | 2024-09-10 22:09:03 +0200 | |
commit | e102e89c6ade6fa5bb9a716a1d836a636dcf2918 (patch) | |
tree | 4114e7a06913d25793da3b833e5d5c832e067be8 /widget/src/container.rs | |
parent | 44235f0c0bcec1695a4504af55e3b00211db9f0e (diff) | |
download | iced-e102e89c6ade6fa5bb9a716a1d836a636dcf2918.tar.gz iced-e102e89c6ade6fa5bb9a716a1d836a636dcf2918.tar.bz2 iced-e102e89c6ade6fa5bb9a716a1d836a636dcf2918.zip |
Implement `scroll_by` operation for `scrollable`
`scroll_by` allows scrolling an absolute offset
that is applied to the current scrolling position.
Diffstat (limited to 'widget/src/container.rs')
-rw-r--r-- | widget/src/container.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/widget/src/container.rs b/widget/src/container.rs index c3a66360..3b794099 100644 --- a/widget/src/container.rs +++ b/widget/src/container.rs @@ -459,6 +459,7 @@ pub fn visible_bounds(id: Id) -> Task<Option<Rectangle>> { _state: &mut dyn widget::operation::Scrollable, _id: Option<&widget::Id>, bounds: Rectangle, + _content_bounds: Rectangle, translation: Vector, ) { match self.scrollables.last() { |