From 75d4e7193e47f2b6c0c725d6fc8ffacef1e70c4a Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 11 Sep 2010 08:30:14 +0000 Subject: [PATCH] Going back to network-timed mouse events. --- guacamole/client/web/javascript/guacamole.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guacamole/client/web/javascript/guacamole.js b/guacamole/client/web/javascript/guacamole.js index 83ca58adf..17782461d 100644 --- a/guacamole/client/web/javascript/guacamole.js +++ b/guacamole/client/web/javascript/guacamole.js @@ -202,7 +202,10 @@ function VNCClient(display) { mouseEventBuffer = ""; // Clear buffer // Once response received, send next queued event. - setTimeout(sendPendingMouseEvents, 10); + mouse_xmlhttprequest.onreadystatechange = function() { + if (mouse_xmlhttprequest.readyState == 4) + sendPendingMouseEvents(); + } mouse_xmlhttprequest.send(null); }