From 87a3a0c571f0092a8f5af9611d35d5d5f6392d8b Mon Sep 17 00:00:00 2001 From: Sravya Katta Date: Tue, 3 Oct 2023 10:10:42 -0400 Subject: [PATCH] removed unnecessary code --- core/rfb.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/core/rfb.js b/core/rfb.js index 5ea96cc2..1ae51158 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -1445,18 +1445,7 @@ export default class RFB extends EventTargetMixin { ]; return clientTypes.includes(type); - } - - _onGestureZoom(scale) { - const currentScale = this._display.scale; // assuming you have a scale property in your _display object - const newScale = currentScale * scale; - - // Calculate the midpoint of the two touches - const midX = (this._gestureHandler._tracked[0].clientX + this._gestureHandler._tracked[1].clientX) / 2; - const midY = (this._gestureHandler._tracked[0].clientY + this._gestureHandler._tracked[1].clientY) / 2; - - this._display.setTransform(midX, midY, newScale); - } + } _negotiateSecurity() { if (this._rfbVersion >= 3.7) {