removed unnecessary code

This commit is contained in:
Sravya Katta 2023-10-03 10:10:42 -04:00
parent 8c37dd6a7b
commit 87a3a0c571
1 changed files with 1 additions and 12 deletions

View File

@ -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) {