pub type ScrollControllerCallback = Rc<dyn Fn(&mut App, AnyScrollPosition)>;Expand description
Signature for when a ScrollController has added or removed a
AnyScrollPosition.
Since a scroll position is not created and attached to a controller until
the Scrollable is built, this can be used to respond to the position being
attached to a controller.
By having access to the position directly, additional listeners can be
applied to aspects of the scroll position, like
[ScrollPosition::is_scrolling_notifier].
Used by ScrollController::on_attach and ScrollController::on_detach.
Aliased Typeยง
pub struct ScrollControllerCallback { /* private fields */ }