pub enum ScrollPhase {
Idle,
Dragging,
Coasting,
}Expand description
Where user-driven scrolling stands (Event::ScrollPhase, docs/scroll.md “Offset and
phase”).
Variants§
Idle
Nothing the user did is moving the content.
Dragging
The user is moving the content: a finger is down and dragging, or a wheel or trackpad gesture is in progress.
Coasting
The user let go and the content is still moving: momentum, a bounce settling, or a snap
to a page. A toolkit that cannot tell this from ScrollPhase::Dragging never sends it.
Trait Implementations§
Source§impl Clone for ScrollPhase
impl Clone for ScrollPhase
impl Copy for ScrollPhase
Source§impl Debug for ScrollPhase
impl Debug for ScrollPhase
Source§impl Default for ScrollPhase
impl Default for ScrollPhase
impl Eq for ScrollPhase
Source§impl Hash for ScrollPhase
impl Hash for ScrollPhase
Source§impl PartialEq for ScrollPhase
impl PartialEq for ScrollPhase
impl StructuralPartialEq for ScrollPhase
Auto Trait Implementations§
impl Forget for ScrollPhase
impl Freeze for ScrollPhase
impl Move for ScrollPhase
impl RefUnwindSafe for ScrollPhase
impl Send for ScrollPhase
impl Sync for ScrollPhase
impl Unpin for ScrollPhase
impl UnsafeUnpin for ScrollPhase
impl UnwindSafe for ScrollPhase
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