1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added reverse mouse wheel option to remote desktop and Intel AMT KVM.

This commit is contained in:
Ylian Saint-Hilaire 2022-06-20 10:55:11 -07:00
parent f150e3ac5f
commit d4502f7b11
3 changed files with 21 additions and 3 deletions

View file

@ -533,6 +533,9 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
else if (Button == obj.MouseButton.RIGHT) { Button = obj.MouseButton.LEFT; }
}
// Reverse mouse wheel if needed
if (obj.ReverseMouseWheel) { Delta = -1 * Delta; }
var MouseMsg = "";
if (Action == obj.KeyAction.DBLCLICK) {
MouseMsg = String.fromCharCode(0x00, obj.InputType.MOUSE, 0x00, 0x0A, 0x00, 0x88, ((X / 256) & 0xFF), (X & 0xFF), ((Y / 256) & 0xFF), (Y & 0xFF));