noVNC/core
Samuel Mannehed 0ff0844a14 Ignore resize observation caused by server resizes
If we increase the remote screen size from the server in such a way that
it no longer fits the browser window, the browser will probably want to
show scrollbars. The same happens if you enable 'clipping' while the
remote is larger than the browser window. These scrollbars do, in turn,
decrease the available space in the browser window. This causes our
ResizeObserver to trigger.

If the resize observation triggers a requestRemoteResize() we will
overwrite the size and request a new one just because scrollbars have
appeared. We don't want that.

We can save the expected client size after resizing, and then compare
the current client size with the expected one. If there is no change
compared to the expected size, we shouldn't send the request.

Fixes issue #1616.
2021-12-13 11:20:14 +01:00
..
decoders Add RealVNC's JPEG encoding 2021-11-26 03:59:19 -05:00
input chore: sync with W3C documentation 2020-12-22 10:50:23 +01:00
util Remove createEvent() fallbacks 2020-12-07 10:10:53 +01:00
base64.js Standardize on camelCase in Base64 2020-05-31 23:37:29 +02:00
deflator.js Add camelCase rule to eslint 2020-05-31 23:37:29 +02:00
des.js Convert DES into a class 2019-02-26 23:53:43 +02:00
display.js Remove createImageData() fallback 2020-12-07 10:10:53 +01:00
encodings.js Merge branch 'add-jpeg-encoding' of https://github.com/pdlan/noVNC 2021-11-29 09:18:50 +01:00
inflator.js Add camelCase rule to eslint 2020-05-31 23:37:29 +02:00
rfb.js Ignore resize observation caused by server resizes 2021-12-13 11:20:14 +01:00
websock.js Don't fake open events in Websock 2021-04-18 14:26:30 +02:00