mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Completed mobile web site full desktop mode.
This commit is contained in:
parent
d3e3db653b
commit
80f016f688
9 changed files with 151 additions and 36 deletions
BIN
public/images/mobile-desk-mouse-left.pdn
Normal file
BIN
public/images/mobile-desk-mouse-left.pdn
Normal file
Binary file not shown.
BIN
public/images/mobile-desk-mouse-left.png
Normal file
BIN
public/images/mobile-desk-mouse-left.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 962 B |
BIN
public/images/mobile-desk-mouse-right.png
Normal file
BIN
public/images/mobile-desk-mouse-right.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 958 B |
BIN
public/images/mobile-desk-mouse.png
Normal file
BIN
public/images/mobile-desk-mouse.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 938 B |
2
public/scripts/amt-desktop-0.0.2-min.js
vendored
2
public/scripts/amt-desktop-0.0.2-min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -46,6 +46,7 @@ var CreateAmtRemoteDesktop = function (divid, scrolldiv) {
|
|||
obj.holding = false;
|
||||
obj.lastKeepAlive = Date.now();
|
||||
// ###END###{DesktopInband}
|
||||
obj.SwapMouse = false;
|
||||
|
||||
obj.mNagleTimer = null; // Mouse motion slowdown timer
|
||||
obj.mx = 0; // Last mouse x position
|
||||
|
@ -823,8 +824,16 @@ var CreateAmtRemoteDesktop = function (divid, scrolldiv) {
|
|||
|
||||
// RFB "PointerEvent" and mouse handlers
|
||||
obj.mousedblclick = function (e) { }
|
||||
obj.mousedown = function (e) { obj.buttonmask |= (1 << e.button); return obj.mousemove(e, 1); }
|
||||
obj.mouseup = function (e) { obj.buttonmask &= (0xFFFF - (1 << e.button)); return obj.mousemove(e, 1); }
|
||||
obj.mousedown = function (e) {
|
||||
var b = e.button;
|
||||
if (obj.SwapMouse) { if (b == 0) { b = 2; } else if (b == 2) { b = 0; } }
|
||||
obj.buttonmask |= (1 << b); return obj.mousemove(e, 1);
|
||||
}
|
||||
obj.mouseup = function (e) {
|
||||
var b = e.button;
|
||||
if (obj.SwapMouse) { if (b == 0) { b = 2; } else if (b == 2) { b = 0; } }
|
||||
obj.buttonmask &= (0xFFFF - (1 << b)); return obj.mousemove(e, 1);
|
||||
}
|
||||
obj.mousemove = function (e, force) {
|
||||
if (obj.state < 4) return true;
|
||||
var ScaleFactorHeight = (obj.canvas.canvas.height / Q(obj.canvasid).offsetHeight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue