cosmic::iced_core::widget::operation::scrollable

Function snap_to

source
pub fn snap_to<T>(target: Id, offset: RelativeOffset) -> impl Operation<T>
Expand description

Produces an Operation that snaps the widget with the given Id to the provided percentage.