mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-10-28 07:33:08 +00:00
Application should hide cursor. Do not require CSS class definitions.
This commit is contained in:
@@ -123,18 +123,10 @@ Guacamole.Client = function(tunnel) {
|
|||||||
var cursorHotspotX = 0;
|
var cursorHotspotX = 0;
|
||||||
var cursorHotspotY = 0;
|
var cursorHotspotY = 0;
|
||||||
|
|
||||||
var cursorHidden = 0;
|
|
||||||
|
|
||||||
function moveCursor(x, y) {
|
function moveCursor(x, y) {
|
||||||
|
|
||||||
var element = cursor.getElement();
|
var element = cursor.getElement();
|
||||||
|
|
||||||
// Hide hardware cursor
|
|
||||||
if (cursorHidden == 0) {
|
|
||||||
display.className += " guac-hide-cursor";
|
|
||||||
cursorHidden = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update rect
|
// Update rect
|
||||||
element.style.left = (x - cursorHotspotX) + "px";
|
element.style.left = (x - cursorHotspotX) + "px";
|
||||||
element.style.top = (y - cursorHotspotY) + "px";
|
element.style.top = (y - cursorHotspotY) + "px";
|
||||||
|
|||||||
Reference in New Issue
Block a user