toolness / mobile-microgame-maker

Attempt at building a mobile microgame maker for Minicade.
http://mmm.minica.de
6 stars 2 forks source link

Games do annoying viewport resizing when embedded in a minicade on mobile #41

Closed toolness closed 9 years ago

toolness commented 9 years ago

For instance, on my iPhone, the following wreaks havoc on my viewport as minicade switches between the metagame and the minigame:

http://minica.de/f/catch-the-yellow-monster

Specifically, it looks like this:

image1

toolness commented 9 years ago

Adding the following CSS to the export template seems to fix it on the iPhone:

@media (max-width: 320px) {
  #phaser-holder {
    max-width: 320px;
  }
}

Not a huge fan of the fix, but it's the only one I've found so far.