diff --git a/core/rfb.js b/core/rfb.js index 993fe7bd..0328d044 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -381,9 +381,9 @@ export default class RFB extends EventTargetMixin { get cropRect() { const { width, height, left, right, top, bottom, fbWidth, fbHeight } = this._cropRect; return `${width}x${height}${ - !right ? `+${left}` : `-${right}` + right ?? false ? `+${left}` : `-${right}` }${ - !bottom ? `+${top}` : `-${bottom}` + bottom ?? false ? `+${top}` : `-${bottom}` }${ width === fbWidth && height === fbHeight ? '' : ` (${fbWidth}x${fbHeight})` }`;