mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	Ignore absolute touch events if more than one touch.
This commit is contained in:
		| @@ -670,6 +670,10 @@ Guacamole.Mouse.Touchscreen = function(element) { | ||||
|  | ||||
|     element.addEventListener("touchend", function(e) { | ||||
|          | ||||
|         // Ignore if more than one touch | ||||
|         if (e.touches.length + e.changedTouches.length != 1) | ||||
|             return; | ||||
|  | ||||
|         e.stopPropagation(); | ||||
|         e.preventDefault(); | ||||
|  | ||||
| @@ -684,6 +688,10 @@ Guacamole.Mouse.Touchscreen = function(element) { | ||||
|  | ||||
|     element.addEventListener("touchstart", function(e) { | ||||
|  | ||||
|         // Ignore if more than one touch | ||||
|         if (e.touches.length != 1) | ||||
|             return; | ||||
|  | ||||
|         e.stopPropagation(); | ||||
|         e.preventDefault(); | ||||
|  | ||||
| @@ -704,6 +712,10 @@ Guacamole.Mouse.Touchscreen = function(element) { | ||||
|  | ||||
|     element.addEventListener("touchmove", function(e) { | ||||
|  | ||||
|         // Ignore if more than one touch | ||||
|         if (e.touches.length != 1) | ||||
|             return; | ||||
|  | ||||
|         e.stopPropagation(); | ||||
|         e.preventDefault(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user