Game freezes when you click outside of canvas

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!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.