pub struct SmoothScrollTracker {Show 13 fields
pub container_path: Vec<usize>,
pub container_id: String,
pub is_id: bool,
pub max_scroll_y: f32,
pub available_travel: f32,
pub bounds_y: f32,
pub current_y: f32,
pub target_y: f32,
pub start_y: f32,
pub initial_velocity: f32,
pub start_time: Instant,
pub last_event_time: Instant,
pub omega: f32,
}Expand description
Active kinetic smooth scroll animation tracking state.
Fields§
§container_path: Vec<usize>§container_id: String§is_id: bool§max_scroll_y: f32§available_travel: f32§bounds_y: f32§current_y: f32Current interpolated scroll offset in pixels.
target_y: f32Target scroll position in pixels.
start_y: f32Initial position at the start of the current impulse.
initial_velocity: f32Initial velocity in px/s at the start of the current impulse.
start_time: InstantTimestamp when the current impulse started.
last_event_time: InstantTimestamp of the last incoming wheel event (for flick velocity calculation).
omega: f32Critically damped angular frequency (rad/s).
Trait Implementations§
Source§impl Clone for SmoothScrollTracker
impl Clone for SmoothScrollTracker
Auto Trait Implementations§
impl Forget for SmoothScrollTracker
impl Freeze for SmoothScrollTracker
impl Move for SmoothScrollTracker
impl RefUnwindSafe for SmoothScrollTracker
impl Send for SmoothScrollTracker
impl Sync for SmoothScrollTracker
impl Unpin for SmoothScrollTracker
impl UnsafeUnpin for SmoothScrollTracker
impl UnwindSafe for SmoothScrollTracker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more