mirror of
https://github.com/wassname/talk.git
synced 2026-07-04 13:58:12 +08:00
6 lines
157 B
JavaScript
6 lines
157 B
JavaScript
export const isTouchDevice = () => {
|
|
return (('ontouchstart' in window)
|
|
|| (navigator.MaxTouchPoints > 0)
|
|
|| (navigator.msMaxTouchPoints > 0));
|
|
};
|