fix: set missing options from constructor
This commit is contained in:
parent
b45f35c6d7
commit
321dbe8577
18
core/rfb.js
18
core/rfb.js
|
@ -290,14 +290,14 @@ export default class RFB extends EventTargetMixin {
|
||||||
|
|
||||||
// ===== PROPERTIES =====
|
// ===== PROPERTIES =====
|
||||||
|
|
||||||
this.dragViewport = false;
|
this.dragViewport = options.dragViewport || false;
|
||||||
this.focusOnClick = true;
|
this.focusOnClick = options.dragViewport || true;
|
||||||
|
|
||||||
this._viewOnly = false;
|
this._viewOnly = options.viewOnly || false;
|
||||||
this._clipViewport = false;
|
this._clipViewport = options.clipViewport || false;
|
||||||
this._clippingViewport = false;
|
this._clippingViewport = options.clippingViewport || false;
|
||||||
this._scaleViewport = false;
|
this._scaleViewport = options.scaleViewport || false;
|
||||||
this._resizeSession = false;
|
this._resizeSession = options.resizeSession || false;
|
||||||
|
|
||||||
this._showDotCursor = false;
|
this._showDotCursor = false;
|
||||||
if (options.showDotCursor !== undefined) {
|
if (options.showDotCursor !== undefined) {
|
||||||
|
@ -305,8 +305,8 @@ export default class RFB extends EventTargetMixin {
|
||||||
this._showDotCursor = options.showDotCursor;
|
this._showDotCursor = options.showDotCursor;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._qualityLevel = 6;
|
this._qualityLevel = options.qualityLevel ?? 6;
|
||||||
this._compressionLevel = 2;
|
this._compressionLevel = options.compressionLevel ?? 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===== PROPERTIES =====
|
// ===== PROPERTIES =====
|
||||||
|
|
Loading…
Reference in New Issue