graememcc / micropolisJS

A port of Micropolis to JS/HTML5
Other
631 stars 94 forks source link

Pause on blur #11

Open graememcc opened 9 years ago

graememcc commented 9 years ago

The sim should pause on a window blur, and resume on focus.

graememcc commented 9 years ago

In fact, it would be better wto use the page visibility API.