Jump to content

Game freezes when you click outside of canvas


Polydus
 Share

Recommended Posts

I made this game in phaser, it's hosted here: http://www.kongregate.com/games/polydus/endless-tank-war

 

One of the problems I have though is that the game freezes when you click the mouse anywhere outside of the canvas (ie when the canvas loses focus). This doesn't happen when I run locally, only when it's hosted on a site like this. It un-freezes when you load another tab and go back again. It also doesn't happen every time, which is why I have no idea what is causing it. I think it could be fixed if I can disable the game on focus loss, but I don't see a way to do that.

 

Thank you for your time!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...