mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 21:02:53 -05:00
Added reverse mouse wheel option to remote desktop and Intel AMT KVM.
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -931,6 +931,10 @@ var CreateAmtRemoteDesktop = function (divid, scrolldiv) {
|
||||
else if (typeof e.detail == 'number') { v = -1 * e.detail; }
|
||||
else if (typeof e.wheelDelta == 'number') { v = e.wheelDelta; }
|
||||
if (v == 0) return;
|
||||
|
||||
// Reverse mouse wheel if needed
|
||||
if (obj.ReverseMouseWheel) { v = -1 * v; }
|
||||
|
||||
var tmpmask = obj.buttonmask;
|
||||
obj.buttonmask |= (1 << ((v > 0) ? 3 : 4));
|
||||
obj.mousemove(e, 1);
|
||||
|
||||
Reference in New Issue
Block a user