Don't capture touch events

They are implicitly captured anyway, and we get problems if we try
to explicitly capture them.
This commit is contained in:
Samuel Mannehed
2017-05-11 13:34:43 +02:00
parent 4f1c81dca9
commit 333ad45c70
3 changed files with 12 additions and 34 deletions
+5 -1
View File
@@ -731,7 +731,11 @@ const UI = {
var handle = document.getElementById("noVNC_control_bar_handle");
var bounds = handle.getBoundingClientRect();
setCapture(handle);
// Touch events have implicit capture
if (e.type === "mousedown") {
setCapture(handle);
}
UI.controlbarGrabbed = true;
UI.controlbarDrag = false;