From e102e89c6ade6fa5bb9a716a1d836a636dcf2918 Mon Sep 17 00:00:00 2001 From: lufte Date: Fri, 10 May 2024 18:50:10 -0300 Subject: Implement `scroll_by` operation for `scrollable` `scroll_by` allows scrolling an absolute offset that is applied to the current scrolling position. --- widget/src/container.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'widget/src/container.rs') 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> { _state: &mut dyn widget::operation::Scrollable, _id: Option<&widget::Id>, bounds: Rectangle, + _content_bounds: Rectangle, translation: Vector, ) { match self.scrollables.last() { -- cgit