pub type ScrollSettlePolicy = Rc<dyn Fn(f32, f32) -> f32>;Expand description
Remaps where a scroll comes to rest once the user’s interaction ends — the
UIScrollView targetContentOffset analog. Receives the naturally proposed
rest offset (the fling’s predicted end, or the current offset for a plain
release/wheel idle) and the release velocity in offset units/sec; returns
the offset the scroll should settle at. Used e.g. by the liquid nav bar to
snap out of the large-title collapse band so the title never rests
half-faded.
Aliased Type§
pub struct ScrollSettlePolicy { /* private fields */ }