mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fix for #3194
This commit is contained in:
parent
8012a10fea
commit
38fa6a9004
2 changed files with 13 additions and 9 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue