Skip to content

Commit

Permalink
reverse horizontal scrolling button numbers
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@24737 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 17, 2019
1 parent 1198594 commit b45a755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ XpraClient.prototype.do_window_mouse_scroll = function(e, window) {
var apy = Math.abs(py);
if (this.server_precise_wheel) {
if (apx>0) {
var btn_x = (px>=0) ? 6 : 7;
var btn_x = (px>=0) ? 7 : 6;
var xdist = Math.round(px*1000/120);
this.send(["wheel-motion", wid, btn_x, -xdist,
[x, y], modifiers, buttons]);
Expand Down Expand Up @@ -1416,7 +1416,7 @@ XpraClient.prototype.do_window_mouse_scroll = function(e, window) {
//send synthetic click+release as many times as needed:
var wx = Math.abs(this.wheel_delta_x);
var wy = Math.abs(this.wheel_delta_y);
var btn_x = (this.wheel_delta_x>=0) ? 6 : 7;
var btn_x = (this.wheel_delta_x>=0) ? 7 : 6;
var btn_y = (this.wheel_delta_y>=0) ? 5 : 4;
while (wx>=120) {
wx -= 120;
Expand Down

0 comments on commit b45a755

Please sign in to comment.