Skip to content

supportTouch

Determine whether the current environment supports touch events.

Usage

ts
import { supportTouch } from 'rattail'

supportTouch() // return true if touch events are supported, false otherwise

Return

Type
boolean