Going back to network-timed mouse events.

This commit is contained in:
Michael Jumper
2010-09-11 08:30:14 +00:00
parent e05a2e5f79
commit 75d4e7193e

View File

@@ -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);
}