5 lines
129 B
JavaScript
5 lines
129 B
JavaScript
|
|
export const isTouchDevice = () =>
|
||
|
|
'ontouchstart' in window ||
|
||
|
|
navigator.maxTouchPoints > 0 ||
|
||
|
|
navigator.msMaxTouchPoints > 0
|