Fix resizes back to initial remote session size

Since the expected client size wasn't updated when the browser window
resized, noVNC didn't resize the canvas properly when going back to
the exact same dimensions.

Fixes issue #1903
This commit is contained in:
Samuel Mannehed
2024-12-27 12:47:38 +01:00
parent 673cb349fd
commit e6e03a226f
2 changed files with 66 additions and 0 deletions

View File

@@ -730,6 +730,7 @@ export default class RFB extends EventTargetMixin {
window.requestAnimationFrame(() => {
this._updateClip();
this._updateScale();
this._saveExpectedClientSize();
});
if (this._resizeSession) {