From 98d7ccdcb10f6a19cbfe58aff89ae470e57ec517 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 20 Dec 2013 11:08:12 +0800 Subject: [PATCH] Roo.js --- Roo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roo.js b/Roo.js index feca4434d4..fb406a7cb4 100644 --- a/Roo.js +++ b/Roo.js @@ -61,7 +61,7 @@ Roo.apply = function(o, c, defaults){ isMac = (ua.indexOf("macintosh") != -1 || ua.indexOf("mac os x") != -1), isLinux = (ua.indexOf("linux") != -1), isSecure = window.location.href.toLowerCase().indexOf("https") === 0, - isTouch = 'ontouchstart' in document.documentElement; + isTouch = 'ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch; // remove css image flicker if(isIE && !isIE7){ try{ -- 2.39.2