pub enum UserScroll {
WhenOverflowing,
Always,
Never,
}Expand description
Whether the user may scroll an area (milestone 649): the reference’s
AlwaysScrollableScrollPhysics and NeverScrollableScrollPhysics, and the rule they
both override.
Whatever it says, the application still moves the area: a controller’s jump, a “bring this into view”, a page turned in code. This is about the user’s drag, fling and wheel only.
Variants§
WhenOverflowing
When there is content outside the viewport to reveal, or a pull to refresh above — the reference’s default rule.
Always
Always, even with everything in sight: a short list still bounces, and still takes the drag from the area around it.
Never
Never: the drag, the fling and the wheel go to the area around it, as if it were not a scrollable at all.
Trait Implementations§
Source§impl Clone for UserScroll
impl Clone for UserScroll
impl Copy for UserScroll
Source§impl Debug for UserScroll
impl Debug for UserScroll
Source§impl Default for UserScroll
impl Default for UserScroll
impl Eq for UserScroll
Source§impl Hash for UserScroll
impl Hash for UserScroll
Source§impl PartialEq for UserScroll
impl PartialEq for UserScroll
impl StructuralPartialEq for UserScroll
Auto Trait Implementations§
impl Freeze for UserScroll
impl RefUnwindSafe for UserScroll
impl Send for UserScroll
impl Sync for UserScroll
impl Unpin for UserScroll
impl UnsafeUnpin for UserScroll
impl UnwindSafe for UserScroll
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