diff options
Diffstat (limited to '')
| -rw-r--r-- | examples/scrollable/src/main.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs index 2e99b1ac..97344c94 100644 --- a/examples/scrollable/src/main.rs +++ b/examples/scrollable/src/main.rs @@ -36,7 +36,7 @@ enum Message {      ScrollerWidthChanged(u16),      ScrollToBeginning,      ScrollToEnd, -    Scrolled(scrollable::RelativeOffset), +    Scrolled(scrollable::Viewport),  }  impl Application for ScrollableDemo { @@ -104,8 +104,8 @@ impl Application for ScrollableDemo {                      self.current_scroll_offset,                  )              } -            Message::Scrolled(offset) => { -                self.current_scroll_offset = offset; +            Message::Scrolled(viewport) => { +                self.current_scroll_offset = viewport.relative_offset();                  Command::none()              } | 
