web-brogue
web-brogue copied to clipboard
Moving the mouse very quickly on the sidebar exits to lobby
This is because each mouse movement on the sidebar causes the entire sidebar to be redrawn and sent to the client. The data fills one of the internal buffering stages (probably the websockets server-side) which causes the game to appear unresponsive and a quit event to be sent.
The correct fix here is to redo the brogue sidebar redraw code refreshSideBar() to use double-buffering and only send the deltas.
Other workarounds could be to limit the speed of sending mouse-entered-cell events, but this would lower the overall responsiveness of the system.
https://github.com/kipraske/web-brogue/pull/50
This is now resolved in a previous merge. Hopefully fixed in brogue itself at some point.