Skip to content

Commit

Permalink
Comment different resize functions in rfb.js
Browse files Browse the repository at this point in the history
  • Loading branch information
samhed committed Dec 27, 2024
1 parent e6e03a2 commit 3193f80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/rfb.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ export default class RFB extends EventTargetMixin {
currentHeight == this._expectedClientHeight;
}

// Handle browser window resizes
_handleResize() {
// Don't change anything if the client size is already as expected
if (this._clientHasExpectedSize()) {
Expand Down Expand Up @@ -2872,6 +2873,7 @@ export default class RFB extends EventTargetMixin {
this._fbWidth, this._fbHeight);
}

// Handle resize-messages from the server
_resize(width, height) {
this._fbWidth = width;
this._fbHeight = height;
Expand Down

0 comments on commit 3193f80

Please sign in to comment.