Skip to content

Commit

Permalink
tell the server to use 'scroll' encoding less
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Apr 13, 2022
1 parent 82199bc commit dc3077b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,11 @@ XpraClient.prototype._make_hello = function() {
this.key_layout = this._get_keyboard_layout();
if (this.supported_encodings.indexOf("scroll")>0) {
//support older servers which use a capability for enabling 'scroll' encoding:
this._update_capabilities({"encoding.scrolling" : true});
this._update_capabilities({
"encoding.scrolling" : true,
"encoding.scrolling.min-percent" : 50,
"encoding.scrolling.preference" : 20,
});
}
this._update_capabilities({
"auto_refresh_delay" : 500,
Expand All @@ -1355,7 +1359,6 @@ XpraClient.prototype._make_hello = function() {
"encodings.cursor" : ["png"],
"encoding.flush" : true,
"encoding.transparency" : true,
//"encoding.scrolling.min-percent" : 30,
"encoding.decoder-speed" : {"video" : 0},
"encodings.packet" : true,
//"encoding.min-speed" : 80,
Expand Down

0 comments on commit dc3077b

Please sign in to comment.