Ignore absolute touch events if more than one touch.
This commit is contained in:
1 parent
2f6dbde5da
commit
182f8e891a
1 file changed
+12
@@ -670,6 +670,10 @@ Guacamole.Mouse.Touchscreen = function(element) {
|
|||||||
|
|
||||||
element.addEventListener("touchend", function(e) {
|
element.addEventListener("touchend", function(e) {
|
||||||
|
|
||||||
|
// Ignore if more than one touch
|
||||||
|
if (e.touches.length + e.changedTouches.length != 1)
|
||||||
|
return;
|
||||||
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
@@ -684,6 +688,10 @@ Guacamole.Mouse.Touchscreen = function(element) {
|
|||||||
|
|
||||||
element.addEventListener("touchstart", function(e) {
|
element.addEventListener("touchstart", function(e) {
|
||||||
|
|
||||||
|
// Ignore if more than one touch
|
||||||
|
if (e.touches.length != 1)
|
||||||
|
return;
|
||||||
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
@@ -704,6 +712,10 @@ Guacamole.Mouse.Touchscreen = function(element) {
|
|||||||
|
|
||||||
element.addEventListener("touchmove", function(e) {
|
element.addEventListener("touchmove", function(e) {
|
||||||
|
|
||||||
|
// Ignore if more than one touch
|
||||||
|
if (e.touches.length != 1)
|
||||||
|
return;
|
||||||
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user