GUACAMOLE-1204: Do not handle pinch gestures locally if the remote desktop is capable of handling pinch gestures.

This commit is contained in:
Michael Jumper
2021-02-10 13:10:57 -08:00
parent 5d6c176a94
commit 09ec1dea06

View File

@@ -463,6 +463,11 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
// Zoom and pan client via pinch gestures // Zoom and pan client via pinch gestures
$scope.clientPinch = function clientPinch(inProgress, startLength, currentLength, centerX, centerY) { $scope.clientPinch = function clientPinch(inProgress, startLength, currentLength, centerX, centerY) {
// Do not handle pinch gestures if they would conflict with remote
// handling of similar gestures
if ($scope.client.multiTouchSupport > 1)
return false;
// Do not handle pinch gestures while relative mouse is in use // Do not handle pinch gestures while relative mouse is in use
if (!$scope.client.clientProperties.emulateAbsoluteMouse) if (!$scope.client.clientProperties.emulateAbsoluteMouse)
return false; return false;