mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-25 12:08:16 +09:00
4 lines
116 B
TypeScript
4 lines
116 B
TypeScript
|
export function isDeviceTouch(): boolean {
|
||
|
return 'maxTouchPoints' in navigator && navigator.maxTouchPoints > 0;
|
||
|
}
|