Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle iPhone rotation #45

Open
jywarren opened this issue Feb 21, 2010 · 0 comments
Open

Handle iPhone rotation #45

jywarren opened this issue Feb 21, 2010 · 0 comments

Comments

@jywarren
Copy link
Owner

Adjust UI and canvas size when a mobile device like the iPhone rotates.
Some old code from Events.js:

//if (Prototype.Browser.MobileSafari) {
// addEventListener("load", function() { setTimeout(updateLayout,
0) }, false)
// var currentWidth = 0;
// function updateLayout() {
// if (window.innerWidth != currentWidth) {
// currentWidth = window.innerWidth;
// var orient = currentWidth == 320 ? "profile" :
"landscape";
// document.body.setAttribute("orient", orient);
// setTimeout(function() {
// window.scrollTo(0, 1);
// }, 100);
// }
// }
// setInterval(updateLayout, 400);
//}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant