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();
|
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