Function: isTouchDevice()
isTouchDevice(
matchMedia?):boolean
Defined in: src/lib/classes/InputSettings/index.ts:87
Whether the device has no fine pointer (mouse or trackpad), i.e. it is a phone or tablet. Without matchMedia, the
device is treated as a desktop.
Parameters
matchMedia?
((query) => object) | undefined = ...
Returns
boolean
Example
isTouchDevice(); // false on a laptop