This issue appears to have been fixed in iOS 6! #16

Open
ericf opened this Issue Jun 18, 2012 · 11 comments

Projects

None yet

9 participants

@ericf
ericf commented Jun 18, 2012

Looks like Apple has fixed this issue in Mobile Safari in iOS 6! \o/

The README could be updated to reflect that, along with possibly not applying this hack when iOS 6 is detected.

@mhulse
mhulse commented Nov 9, 2012

Just out of curiosity, what's your meta viewport tag look like?

So you're saying this:

<meta name="viewport" content="width=device-width, initial-scale=1">

... works in the latest iOS? That's good news. Do you happen to know of any blog posts that talk about this fix?

I'll have to test... It would be nice to have the README make note of this.

@mhulse
mhulse commented Nov 13, 2012

Just tested in iOS6, and it does appear to be fixed. That's cool! I'm kinda thinking that I'll just let older iOS versions spaz out for the sake of having one less JS file to manage/load.

Not that I don't appreciate this code... It saved my layouts for those older IOSes. 👍

Anyone else out there deciding to let the older IOS versions do their thing?

@kkifa
kkifa commented Dec 20, 2012

The issue does not appear to be fixed in iOS 6 for me.
Including this javascript did not fix the orientation bug either.

@scottjehl
Owner

The code is written to only apply to iOS5 and older, so you can choose to include it or don't - either way, iOS6 won't be affected, as it's finally fixed :)

On Nov 13, 2012, at 5:14 PM, Micky Hulse wrote:

Just tested in iOS6, and it does appear to be fixed. That's cool! I'm kinda thinking that I'll just let older iOS versions spaz out for the sake of having one less JS file to manage/load.

Not that I don't appreciate this code... It saved my layouts for those older IOSes.

Anyone else out there deciding to let the older IOS versions do their thing?


Reply to this email directly or view it on GitHub.

@mhulse
mhulse commented Dec 20, 2012

Anyone have a link to official docs that say it's been fixed? I'd like to spread the word, but I can't find any official documentation.

@since1976

Is it really fixed? I just visited your test page on my iPhone running iOS6 and it is still happening.

@mhulse
mhulse commented Jan 23, 2013

I have not been able to find any official Apple docs that say it's been fixed. I'd love to see something official (or, even semi-official).

For those wanting to test for themselves, here's a quick link to the demo page:

qr code

A quick test on my iPhone4 with iOS6 and it works for me (no bugs).

@Evanion
Evanion commented Jan 30, 2013

Well, it works on my iPhone 4S with IOS 6.
But if the user have scaled in portrait mode ... ever so slightly when switching to landscape ... the previous behaviour occurs, and the page zooms in a lot more then relative to the portrait mode.

@castorda
castorda commented Jul 7, 2013

This script does work in iOS5 for me, but not for iOS6. Anyone know why this could be happening? This is what my viewport looks like:

@jalcide
jalcide commented Aug 6, 2013

I don't think it's been 100% fixed in iOS6. It seems to still happen, often, on the second rotation. Seemingly, even without being "ever so slightly" scaled.

Here's at least one other who has noticed this, too: http://stackoverflow.com/questions/17678962/mobile-safari-ios6-does-not-change-viewport-width-on-the-second-rotation-wh/18091016#18091016

Any other confirmations on this?

@amarchen

Yep, happens on the second rotation to me too (well, I am the one who posted this question to stackoverflow - http://stackoverflow.com/questions/17678962/mobile-safari-ios6-does-not-change-viewport-width-on-the-second-rotation-wh/18091016#18091016 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment