mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +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 cursorHotspotY = 0;
|
||||
|
||||
var cursorHidden = 0;
|
||||
|
||||
function moveCursor(x, y) {
|
||||
|
||||
var element = cursor.getElement();
|
||||
|
||||
// Hide hardware cursor
|
||||
if (cursorHidden == 0) {
|
||||
display.className += " guac-hide-cursor";
|
||||
cursorHidden = 1;
|
||||
}
|
||||
|
||||
// Update rect
|
||||
element.style.left = (x - cursorHotspotX) + "px";
|
||||
element.style.top = (y - cursorHotspotY) + "px";
|
||||
|
Reference in New Issue
Block a user