Jump to content

Can't get game onBlur to fire.


Recommended Posts

Any idea why I can't get the game onBlur to fire. I intended to use it to stop background music playing when the game loses focus. I've cut everything down to this:

game.onBlur.add(function() {    console.log("BLURRED");}, this);

I can see that the game object has the signals added but the function never gets called. Have I missed something?


Link to comment
Share on other sites


  • Recently Browsing   0 members

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