1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00
This commit is contained in:
Ylian Saint-Hilaire 2021-10-14 15:09:52 -07:00
parent 8012a10fea
commit 38fa6a9004
2 changed files with 13 additions and 9 deletions

View file

@ -847,10 +847,14 @@ var CreateAmtRemoteDesktop = function (divid, scrolldiv) {
if (event.addy) { obj.my += event.addy; }
// ###BEGIN###{DesktopRotation}
if ((obj.rotation == 1) || (obj.rotation == 3)) {
obj.mx = ((obj.mx * obj.rwidth) / obj.width);
obj.my = ((obj.my * obj.rheight) / obj.height);
}
if (obj.noMouseRotate != true) {
obj.mx2 = _crotX(obj.mx, obj.my);
var mx2 = _crotX(obj.mx, obj.my);
obj.my = _crotY(obj.mx, obj.my);
obj.mx = obj.mx2;
obj.mx = mx2;
}
// ###END###{DesktopRotation}