mirror of
https://github.com/novnc/noVNC.git
synced 2026-06-07 21:04:37 +00:00
New way of detecting touch
Moves detection to Util and fixes so that touch is properly detected on MS Surface and touch emulation in Chrome.
This commit is contained in:
@@ -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) };
|
||||
|
||||
Reference in New Issue
Block a user