diff options
Diffstat (limited to 'tests/input.html')
-rw-r--r-- | tests/input.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/input.html b/tests/input.html index a261924..437d6f3 100644 --- a/tests/input.html +++ b/tests/input.html @@ -119,7 +119,7 @@ mouse.grab(); message("Display initialized"); - if ('ontouchstart' in document.documentElement) { + if (Util.isTouchDevice) { message("Touch device detected"); document.getElementById('button-selection').style.display = "inline"; document.getElementById('button1').onclick = function(){ selectButton(1) }; |