SUPPORTS_TOUCH
const
Environment Detection
Boolean flag set at module load time: true when the current environment supports touch events (ontouchstart present or maxTouchPoints > 0). Always false during SSR.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Resolved value
Ecosystem
Used by
Composables and components that consume this constant.
useTouch
useRipple
OrigamSlider
Usage
Examples
Ready-to-paste code snippets using this constant.
Conditionally bind touch handlers