removed unnecessary code
This commit is contained in:
parent
8c37dd6a7b
commit
87a3a0c571
13
core/rfb.js
13
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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue