diff options
author | 2022-08-04 03:55:41 +0200 | |
---|---|---|
committer | 2022-08-04 03:55:41 +0200 | |
commit | 13dd1ca0a83cc95eea52e2106da9dc1ee1f37958 (patch) | |
tree | 4b142110e23fe45b8d5d21935034c951f548d7e8 /src | |
parent | 6eb3dd7e5edc8847875c288c41d1dec8b1dad06e (diff) | |
download | iced-13dd1ca0a83cc95eea52e2106da9dc1ee1f37958.tar.gz iced-13dd1ca0a83cc95eea52e2106da9dc1ee1f37958.tar.bz2 iced-13dd1ca0a83cc95eea52e2106da9dc1ee1f37958.zip |
Implement `scrollable::snap_to` operation
Diffstat (limited to 'src')
-rw-r--r-- | src/widget.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widget.rs b/src/widget.rs index c3b6d83b..817d2d33 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -99,7 +99,7 @@ pub mod radio { pub mod scrollable { //! Navigate an endless amount of content with a scrollbar. pub use iced_native::widget::scrollable::{ - style::Scrollbar, style::Scroller, StyleSheet, + snap_to, style::Scrollbar, style::Scroller, Id, StyleSheet, }; /// A widget that can vertically display an infinite amount of content @@ -220,7 +220,7 @@ pub fn focus_previous<Message>() -> Command<Message> where Message: 'static, { - Command::widget(operation::focus_previous()) + Command::widget(operation::focusable::focus_previous()) } /// Focuses the next focusable widget. @@ -228,5 +228,5 @@ pub fn focus_next<Message>() -> Command<Message> where Message: 'static, { - Command::widget(operation::focus_next()) + Command::widget(operation::focusable::focus_next()) } |