Roo.js
authorAlan Knowles <alan@roojs.com>
Fri, 30 Sep 2016 02:55:20 +0000 (10:55 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 30 Sep 2016 02:55:20 +0000 (10:55 +0800)
Roo.js

diff --git a/Roo.js b/Roo.js
index 90a960a..d9ededc 100644 (file)
--- a/Roo.js
+++ b/Roo.js
@@ -65,7 +65,10 @@ Roo.apply = function(o, c, defaults){
         isSecure = window.location.href.toLowerCase().indexOf("https") === 0,
         isIOS = /iphone|ipad/.test(ua),
         isTouch =  (function() {
-            try {  
+            try {
+                if (ua.indexOf('chrome') != -1 && ua.indexOf('android') == -1) {
+                    return false; // no touch on chrome!?
+                }
                 document.createEvent("TouchEvent");  
                 return true;  
             } catch (e) {