pub struct ScrollDeltaResult {
pub next_offset: (f32, f32),
pub remaining: (f32, f32),
pub consumed_x: bool,
pub consumed_y: bool,
pub visual_changed: bool,
pub clamped_changed: bool,
pub auto_overscroll_x: bool,
pub auto_overscroll_y: bool,
}Expand description
Per-container delta consumption outcome written by ScrollPhysicsEngine::on_scroll_delta.
Fields§
§next_offset: (f32, f32)Updated clamped scroll offset (x, y) (pre-initialized to ctx.offset).
remaining: (f32, f32)Remaining unconsumed delta (rem_x, rem_y) to propagate to ancestor containers
(already zeroed on axes blocked by OverscrollBehavior::{Contain, None}).
consumed_x: boolWhether X / Y consumed any delta (overscroll unwind, wheel easing, or clamped scroll).
consumed_y: bool§visual_changed: boolWhether visual presentation (clamped offset, overscroll, or animation state) changed.
clamped_changed: boolWhether the clamped scroll offset changed (emits ScrollEvent::Scroll & a11y updates).
auto_overscroll_x: boolWhether this container is eligible to absorb leftover Auto-chain overscroll on X / Y
if no ancestor consumes the remaining delta.
auto_overscroll_y: boolTrait Implementations§
Source§impl Clone for ScrollDeltaResult
impl Clone for ScrollDeltaResult
impl Copy for ScrollDeltaResult
Source§impl Debug for ScrollDeltaResult
impl Debug for ScrollDeltaResult
Auto Trait Implementations§
impl Forget for ScrollDeltaResult
impl Freeze for ScrollDeltaResult
impl Move for ScrollDeltaResult
impl RefUnwindSafe for ScrollDeltaResult
impl Send for ScrollDeltaResult
impl Sync for ScrollDeltaResult
impl Unpin for ScrollDeltaResult
impl UnsafeUnpin for ScrollDeltaResult
impl UnwindSafe for ScrollDeltaResult
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