projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54c204c
)
Roo.js
author
Alan Knowles
<alan@roojs.com>
Fri, 30 Sep 2016 02:57:06 +0000
(10:57 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 30 Sep 2016 02:57:06 +0000
(10:57 +0800)
Roo.js
patch
|
blob
|
history
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");