diff --git a/amt-desktop-0.0.2.js b/amt-desktop-0.0.2.js index 63afa7a..da75197 100644 --- a/amt-desktop-0.0.2.js +++ b/amt-desktop-0.0.2.js @@ -892,10 +892,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}