pub enum TouchAction {
Auto,
PanX,
PanY,
None,
}Expand description
A simplified representation of the CSS touch-action property, used by the
compositor to decide how a touch gesture may scroll a given node.
NOTE: Directional variants (pan-left/pan-right/…) are not supported in Stylo at all.
Firefox also fails the parsing.
Variants§
Auto
touch-action: auto (and manipulation, pan-x pan-y). The compositor
applies the scroll-chaining axis lock: lock to the dominant axis only
when the hit node cannot scroll that axis.
PanX
touch-action: pan-x. The vertical axis is excluded from input-event
scrolling (chains to ancestor); the gesture locks to its dominant axis.
PanY
touch-action: pan-y. The horizontal axis is excluded from input-event
scrolling (chains to ancestor); the gesture locks to its dominant axis.
None
touch-action: none (and pinch-zoom alone). No single-finger direct
manipulation: do not scroll.
Trait Implementations§
Source§impl Clone for TouchAction
impl Clone for TouchAction
Source§fn clone(&self) -> TouchAction
fn clone(&self) -> TouchAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TouchAction
impl Debug for TouchAction
Source§impl<'de> Deserialize<'de> for TouchAction
impl<'de> Deserialize<'de> for TouchAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<TouchAction> for TouchAction
impl From<TouchAction> for TouchAction
Source§fn from(stylo: TouchAction) -> Self
fn from(stylo: TouchAction) -> Self
Source§impl MallocSizeOf for TouchAction
impl MallocSizeOf for TouchAction
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Source§impl PartialEq for TouchAction
impl PartialEq for TouchAction
Source§fn eq(&self, other: &TouchAction) -> bool
fn eq(&self, other: &TouchAction) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for TouchAction
impl Serialize for TouchAction
impl Copy for TouchAction
impl Eq for TouchAction
impl StructuralPartialEq for TouchAction
Auto Trait Implementations§
impl Freeze for TouchAction
impl RefUnwindSafe for TouchAction
impl Send for TouchAction
impl Sync for TouchAction
impl Unpin for TouchAction
impl UnsafeUnpin for TouchAction
impl UnwindSafe for TouchAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more