pub enum ScrollSource {
Wheel,
Touch,
}Expand description
What produced a scroll delta.
A wheel notch and a one-finger drag are the same Vec2 by the time they
reach a handler, which is why a canvas cannot decide “zoom” from the value
alone. Two-finger pan and pinch are not scrolls: they arrive as
crate::shortcuts::Gesture actions instead.
Variants§
Trait Implementations§
Source§impl Clone for ScrollSource
impl Clone for ScrollSource
impl Copy for ScrollSource
Source§impl Debug for ScrollSource
impl Debug for ScrollSource
impl Eq for ScrollSource
Source§impl Hash for ScrollSource
impl Hash for ScrollSource
Source§impl PartialEq for ScrollSource
impl PartialEq for ScrollSource
impl StructuralPartialEq for ScrollSource
Auto Trait Implementations§
impl Freeze for ScrollSource
impl RefUnwindSafe for ScrollSource
impl Send for ScrollSource
impl Sync for ScrollSource
impl Unpin for ScrollSource
impl UnsafeUnpin for ScrollSource
impl UnwindSafe for ScrollSource
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