2

I have a web-app here that uses the accelerometer on the iP(ad|od|hone) devices, and HTML5 canvas. Unfortunately, the experience of the app is rather ruined when the page rotates.

Is there any way I can prevent it from doing so? If not, how can I make the landscape version identical to the portrait one?

Eric
  • 95,302
  • 53
  • 242
  • 374
  • Could you use CSS media queries to adjust to the aspect ratio of the landscape orientation? – Pointy May 29 '11 at 12:26
  • possible duplicate of [How do I lock the orientation to portrait mode in a iPhone Web Application?](http://stackoverflow.com/questions/1207008/how-do-i-lock-the-orientation-to-portrait-mode-in-a-iphone-web-application) – alex Sep 20 '11 at 03:15
  • 1
    See http://stackoverflow.com/questions/1207008/how-do-i-lock-the-orientation-to-portrait-mode-in-a-iphone-web-application/3261959#3261959 – Gerben May 29 '11 at 12:42

1 Answers1

1

You will see this script to your problem: http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/

Nick Nizovtsev
  • 233
  • 1
  • 10