From 4ead80a37cfdb66b1186191dc19d08358127fbef Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Mon, 4 Apr 2016 12:51:46 -0700 Subject: [PATCH] Improve touch detection --- src/app/Coriolis.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Coriolis.jsx b/src/app/Coriolis.jsx index e3318368..845d17fa 100644 --- a/src/app/Coriolis.jsx +++ b/src/app/Coriolis.jsx @@ -55,7 +55,7 @@ export default class Coriolis extends React.Component { this.emitter = new EventEmitter(); this.state = { - noTouch: !window.ontouchstart && !navigator.MaxTouchPoints && !navigator.msMaxTouchPoints, + noTouch: !('ontouchstart' in window || navigator.msMaxTouchPoints || navigator.maxTouchPoints), page: null, language: getLanguage(Persist.getLangCode()), route: {},