removed unnecessary code
This commit is contained in:
parent
8c37dd6a7b
commit
87a3a0c571
11
core/rfb.js
11
core/rfb.js
|
|
@ -1447,17 +1447,6 @@ export default class RFB extends EventTargetMixin {
|
||||||
return clientTypes.includes(type);
|
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() {
|
_negotiateSecurity() {
|
||||||
if (this._rfbVersion >= 3.7) {
|
if (this._rfbVersion >= 3.7) {
|
||||||
// Server sends supported list, client decides
|
// Server sends supported list, client decides
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue