GUACAMOLE-1204: Allow pinch/drag touch gestures to be tracked in addition to any local touch event pass-through.

This commit is contained in:
Michael Jumper committed 2021-02-11 20:32:28 -08:00
1 parent 483aa14cac
commit 5d6c176a94
2 files changed
-8

No files matched your search

@@ -159,8 +159,6 @@ angular.module('touch').directive('guacTouchPinch', [function guacTouchPinch() {
element.addEventListener("touchmove", function pinchTouchMove(e) {
if (e.touches.length === 2) {
e.stopPropagation();
// Calculate current zoom level
currentLength = pinchDistance(e);
@@ -188,8 +186,6 @@ angular.module('touch').directive('guacTouchPinch', [function guacTouchPinch() {
if (startLength && e.touches.length < 2) {
e.stopPropagation();
// Notify of pinch end
if (guacTouchPinch) {
$scope.$apply(function pinchComplete() {