ShouldAdjustScrollPositionOnItemSizeChangeCallback

Type Alias ShouldAdjustScrollPositionOnItemSizeChangeCallback 

Source
pub type ShouldAdjustScrollPositionOnItemSizeChangeCallback<K> = Arc<dyn Fn(&Virtualizer<K>, VirtualItem, i64) -> bool + Send + Sync>;
Expand description

A hook that decides whether to adjust scroll position when an item size changes.

This is typically used to prevent visual “jumps” when an item above the current scroll offset is measured and differs from its estimate.

Aliased Type§

pub struct ShouldAdjustScrollPositionOnItemSizeChangeCallback<K> { /* private fields */ }