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();
|
var image = new Image();
|
||||||
image.onload = function() {
|
image.onload = function() {
|
||||||
cursorImage = image;
|
cursorImage = image;
|
||||||
|
|
||||||
|
var cursorX = cursorRectX + cursorHotspotX;
|
||||||
|
var cursorY = cursorRectY + cursorHotspotY;
|
||||||
|
|
||||||
cursorHotspotX = x;
|
cursorHotspotX = x;
|
||||||
cursorHotspotY = y;
|
cursorHotspotY = y;
|
||||||
redrawCursor(
|
|
||||||
cursorRectX + cursorHotspotX,
|
redrawCursor(cursorX, cursorY);
|
||||||
cursorRectY + cursorHotspotY
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
image.src = "data:image/png;base64," + data
|
image.src = "data:image/png;base64," + data
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user