JohnMcLear / draw

A real time collaborative drawing tool using nodejs, socket.io & paper.js
Apache License 2.0
482 stars 158 forks source link

Refreshing issue while returning from another tabs #237

Open shilpabuddha4 opened 8 years ago

shilpabuddha4 commented 8 years ago

Hi John, Good Work!! This is a nice board with good options.

But, I have some loading issue with drawing board, when i open other tabs in the browser and returning to the board. The board is completely becoming empty when i return from another tabs to board. Can you please let me know how to fix this issue. If i try to reload the URL then only the complete board is displaying as it is before.

JohnMcLear commented 8 years ago

I assume some disconnect logic needs adding. See if a socket disconnect event is fired and/or reconnect and add some logic to reload the board on reconnect.

bytesnz commented 8 years ago

Hey @shilpabuddha4, what browser are you using? If using chrome, are you still having the issue (if you have upgraded to the latest version)

theoryshaw commented 8 years ago

I've had the same issue, for some time, as well. I just reload--not ideal, however.

bytesnz commented 8 years ago

Yeah, it's been an issue for quite a long time. Hopefully, I'll get a little bit of time to look at this.