Skip to content

Commit

Permalink
fix wheel motion packet format for precise-wheel mode
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21192 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 10, 2018
1 parent d3a6cc4 commit 1d8802a
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 @@ -1307,13 +1307,13 @@ XpraClient.prototype.do_window_mouse_scroll = function(e, window) {
var btn_x = (px>=0) ? 6 : 7;
var xdist = Math.round(px*1000/120);
this.send(["wheel-motion", wid, btn_x, -xdist,
(x, y), modifiers, buttons]);
[x, y], modifiers, buttons]);
}
if (apy>0) {
var btn_y = (py>=0) ? 5 : 4;
var ydist = Math.round(py*1000/120);
this.send(["wheel-motion", wid, btn_y, -ydist,
(x, y), modifiers, buttons]);
[x, y], modifiers, buttons]);
}
return;
}
Expand Down

0 comments on commit 1d8802a

Please sign in to comment.