Skip to content

Commit 3193f80

Browse files
committed
Comment different resize functions in rfb.js
1 parent e6e03a2 commit 3193f80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/rfb.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ export default class RFB extends EventTargetMixin {
720720
currentHeight == this._expectedClientHeight;
721721
}
722722

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

2876+
// Handle resize-messages from the server
28752877
_resize(width, height) {
28762878
this._fbWidth = width;
28772879
this._fbHeight = height;

0 commit comments

Comments
 (0)