Fixups
This commit is contained in:
@@ -355,7 +355,7 @@ export default class Display {
|
|||||||
|
|
||||||
imageRect(x, y, w, h, mime, arr) {
|
imageRect(x, y, w, h, mime, arr) {
|
||||||
/* The internal logic cannot handle empty images, so bail early */
|
/* The internal logic cannot handle empty images, so bail early */
|
||||||
if ((width === 0) || (height === 0)) {
|
if ((w === 0) || (h === 0)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ export default class RFB extends EventTargetMixin {
|
|||||||
this._rfbCredentials = options.credentials || {};
|
this._rfbCredentials = options.credentials || {};
|
||||||
this._shared = 'shared' in options ? !!options.shared : true;
|
this._shared = 'shared' in options ? !!options.shared : true;
|
||||||
this._repeaterID = options.repeaterID || '';
|
this._repeaterID = options.repeaterID || '';
|
||||||
this._wsProtocols = options.wsProtocols || [];
|
this._wsProtocols = options.wsProtocols || ['binary'];
|
||||||
|
|
||||||
// Internal state
|
// Internal state
|
||||||
this._rfbConnectionState = '';
|
this._rfbConnectionState = '';
|
||||||
@@ -1603,7 +1603,7 @@ export default class RFB extends EventTargetMixin {
|
|||||||
encs.push(encodings.pseudoEncodingCursor);
|
encs.push(encodings.pseudoEncodingCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supportsCursorURIs() && this._fb_depth == 24){
|
if (supportsCursorURIs && this._fb_depth == 24){
|
||||||
// Allow the user to attempt using a local cursor even if they are using a touch device. KASM-395
|
// Allow the user to attempt using a local cursor even if they are using a touch device. KASM-395
|
||||||
if (this.preferLocalCursor || !isTouchDevice){
|
if (this.preferLocalCursor || !isTouchDevice){
|
||||||
encs.push(encodings.pseudoEncodingCursor)
|
encs.push(encodings.pseudoEncodingCursor)
|
||||||
|
|||||||
Reference in New Issue
Block a user