Skip to content

Commit

Permalink
#122 don't enable 'scroll' encoding with offscreen rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 26, 2022
1 parent 91bc852 commit 6b2984e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,12 @@ XpraClient.prototype._make_hello = function() {
this.desktop_width = this.container.clientWidth;
this.desktop_height = this.container.clientHeight;
this.key_layout = this._get_keyboard_layout();
if (!this.offscreen_api) {
this._update_capabilities({
"encoding.scrolling" : true,
//"encoding.scrolling.min-percent" : 30,
});
}
this._update_capabilities({
"auto_refresh_delay" : 500,
"randr_notify" : true,
Expand All @@ -1330,10 +1336,8 @@ XpraClient.prototype._make_hello = function() {
"encodings.cursor" : ["png"],
"encoding.flush" : true,
"encoding.transparency" : true,
"encoding.scrolling" : true,
"encoding.decoder-speed" : {"video" : 0},
"encodings.packet" : true,
//"encoding.scrolling.min-percent" : 30,
//"encoding.min-speed" : 80,
//"encoding.min-quality" : 50,
"encoding.color-gamut" : Utilities.getColorGamut(),
Expand Down

0 comments on commit 6b2984e

Please sign in to comment.