mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Fixed initial draw location for new cursors
This commit is contained in:
@@ -307,12 +307,14 @@ function GuacamoleClient(display, tunnel) {
|
||||
var image = new Image();
|
||||
image.onload = function() {
|
||||
cursorImage = image;
|
||||
|
||||
var cursorX = cursorRectX + cursorHotspotX;
|
||||
var cursorY = cursorRectY + cursorHotspotY;
|
||||
|
||||
cursorHotspotX = x;
|
||||
cursorHotspotY = y;
|
||||
redrawCursor(
|
||||
cursorRectX + cursorHotspotX,
|
||||
cursorRectY + cursorHotspotY
|
||||
);
|
||||
|
||||
redrawCursor(cursorX, cursorY);
|
||||
};
|
||||
image.src = "data:image/png;base64," + data
|
||||
|
||||
|
Reference in New Issue
Block a user