Roo.js
[roojs1] / Roo.js
diff --git a/Roo.js b/Roo.js
index d9ededc..c7ac781 100644 (file)
--- 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");