From 4f0e8f438ccf2017f5c65f2ebe7dd1cb25734e29 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 30 Sep 2016 10:57:06 +0800 Subject: [PATCH] Roo.js --- Roo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Roo.js b/Roo.js index d9ededc7e0..c7ac7810f0 100644 --- a/Roo.js +++ b/Roo.js @@ -67,6 +67,10 @@ Roo.apply = function(o, c, defaults){ isTouch = (function() { try { if (ua.indexOf('chrome') != -1 && ua.indexOf('android') == -1) { + window.addEventListener('touchstart', function __set_has_touch__ () { + Roo.isTouch = true; + winow.removeEventListener('touchstart', __set_has_touch__); + }); return false; // no touch on chrome!? } document.createEvent("TouchEvent"); -- 2.39.2