Implement scrollable::snap_to operation

This commit is contained in:
Héctor Ramón Jiménez 2022-08-04 03:55:41 +02:00
parent 6eb3dd7e5e
commit 13dd1ca0a8
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
13 changed files with 293 additions and 204 deletions

View file

@ -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())
}