egirlskey/packages/client/src/scripts/is-device-touch.ts
syuilo 0e4a111f81 refactoring
Resolve #7779
2021-11-12 02:02:25 +09:00

1 line
92 B
TypeScript

export const isDeviceTouch = 'maxTouchPoints' in navigator && navigator.maxTouchPoints > 0;