diff --git a/package.json b/package.json index 293f1248..df6c3f27 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.3.2-y", + "version": "0.3.3-b", "keywords": [ "Remote Management", "Intel AMT", @@ -20,6 +20,7 @@ "sample-config.json", "license.txt", "readme.txt", + "amt", "agents", "public", "views", diff --git a/public/scripts/agent-desktop-0.0.2.js b/public/scripts/agent-desktop-0.0.2.js index 1e0ee7c2..f3d3ee88 100644 --- a/public/scripts/agent-desktop-0.0.2.js +++ b/public/scripts/agent-desktop-0.0.2.js @@ -450,11 +450,14 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) { if (obj.State != 3) return; if (Action != null && obj.Canvas != null) { if (!event) { var event = window.event; } + var ScaleFactorHeight = (obj.Canvas.canvas.height / obj.CanvasId.clientHeight); var ScaleFactorWidth = (obj.Canvas.canvas.width / obj.CanvasId.clientWidth); var Offsets = obj.GetPositionOfControl(obj.Canvas.canvas); var X = ((event.pageX - Offsets[0]) * ScaleFactorWidth); var Y = ((event.pageY - Offsets[1]) * ScaleFactorHeight); + if (event.addx) { X += event.addx; } + if (event.addy) { Y += event.addy; } if (X >= 0 && X <= obj.Canvas.canvas.width && Y >= 0 && Y <= obj.Canvas.canvas.height) { var Button = 0; diff --git a/public/scripts/amt-desktop-0.0.2.js b/public/scripts/amt-desktop-0.0.2.js index 45caccf1..0d19b0ed 100644 --- a/public/scripts/amt-desktop-0.0.2.js +++ b/public/scripts/amt-desktop-0.0.2.js @@ -779,9 +779,13 @@ var CreateAmtRemoteDesktop = function (divid, scrolldiv) { obj.mouseup = function (e) { obj.buttonmask &= (0xFFFF - (1 << e.button)); return obj.mousemove(e); } obj.mousemove = function (e) { if (obj.state != 4) return true; - var pos = obj.getPositionOfControl(Q(obj.canvasid)); - obj.mx = (e.pageX - pos[0]) * (obj.canvas.canvas.height / Q(obj.canvasid).offsetHeight); - obj.my = ((e.pageY - pos[1] + (scrolldiv ? scrolldiv.scrollTop : 0)) * (obj.canvas.canvas.width / Q(obj.canvasid).offsetWidth)); + var ScaleFactorHeight = (obj.canvas.canvas.height / Q(obj.canvasid).offsetHeight); + var ScaleFactorWidth = (obj.canvas.canvas.width / Q(obj.canvasid).offsetWidth); + var Offsets = obj.getPositionOfControl(Q(obj.canvasid)); + obj.mx = ((event.pageX - Offsets[0]) * ScaleFactorWidth); + obj.my = ((event.pageY - Offsets[1]) * ScaleFactorHeight); + if (event.addx) { obj.mx += event.addx; } + if (event.addy) { obj.my += event.addy; } // ###BEGIN###{DesktopRotation} if (obj.noMouseRotate != true) { diff --git a/views/default-min.handlebars b/views/default-min.handlebars index 8c94c54c..45241dcd 100644 --- a/views/default-min.handlebars +++ b/views/default-min.handlebars @@ -1 +1 @@ -
{{{logoutControl}}}
My Devices | My Account | My Events | My Files | My Users | My Server |
{{{logoutControl}}}
My Devices | My Account | My Events | My Files | My Users | My Server |