Touch events for mobile :)

This commit is contained in:
Belen Curcio
2017-07-24 18:49:51 -03:00
parent db183124c9
commit 85a10ba693
3 changed files with 35 additions and 2 deletions
@@ -0,0 +1,5 @@
export const isTouchDevice = () => {
return (('ontouchstart' in window)
|| (navigator.MaxTouchPoints > 0)
|| (navigator.msMaxTouchPoints > 0));
};