Fixed initial draw location for new cursors

This commit is contained in:
Michael Jumper
2011-05-18 14:24:45 -07:00
parent 6f80c9f730
commit 2d7f30ed7b

View File

@@ -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