mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Touch events for mobile :)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export const isTouchDevice = () => {
|
||||
return (('ontouchstart' in window)
|
||||
|| (navigator.MaxTouchPoints > 0)
|
||||
|| (navigator.msMaxTouchPoints > 0));
|
||||
};
|
||||
Reference in New Issue
Block a user