From 54c204c75356f0c0c937935f99102b32fd2fd0e4 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 30 Sep 2016 10:55:20 +0800 Subject: [PATCH] Roo.js --- Roo.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Roo.js b/Roo.js index 90a960a834..d9ededc7e0 100644 --- 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) { -- 2.39.2