Fixed initial draw location for new cursors
This commit is contained in:
1 parent
6f80c9f730
commit
2d7f30ed7b
1 file changed
+6
-4
@@ -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