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

@ -1,5 +1,5 @@
use crate::widget::state;
use crate::widget::{Id, Operation};
use crate::widget::operation::{self, Operation};
use crate::widget::Id;
use iced_futures::MaybeSend;
@ -72,7 +72,11 @@ where
.container(id, operate_on_children);
}
fn focusable(&mut self, state: &mut dyn state::Focusable, id: Option<&Id>) {
fn focusable(
&mut self,
state: &mut dyn operation::Focusable,
id: Option<&Id>,
) {
self.operation.focusable(state, id);
}
}