scottjehl / iOS-Orientationchange-Fix

A fix for the iOS orientationchange zoom bug.
770 stars 115 forks source link

Doesn't work in iOS Simulator 5.1 #24

Open grayghostvisuals opened 12 years ago

grayghostvisuals commented 12 years ago

The fix doesn't seem to work in the latest Xcode simulator (iOS Simulator 5.1). I tested with the demo page. Anyone else having trouble?

mihaipaun commented 12 years ago

It's not working for me either, and I'm curious why. @scottjehl, any ideas?

mhulse commented 12 years ago

I've noticed that there are some things that just don't work right in the simulator... There have seen instances where something I've tested via the simulator doesn't work, but it will work when I test it on the real device.

Based on the above, I've always thought it was a limitation of, and/or a bug, of the iOS simulator.

Have either of you actually tested this script on the real device that you're targeting (for comparison's sake)?

filipealonso commented 11 years ago

Hi! I just tried in iPad 1 with iOS 5.1.1 and the fix doesn't work either.

In the next days I'll try to get an iPad 2 or 3 with iOS 5.1 or 5.1.1 to test if it only happens with both the simulator and iPad 1 or if it's common to the iOS version, namely 5.1/5.1.1.

Meanwhile, do you have already any thoughts on the problem?

northk commented 11 years ago

Doesn't work on the iPhone simulator (version 6) for me either. Unfortunately I don't have an iPhone to test on, at the moment.

evanblack commented 11 years ago

The fix relies on the device accelerometer which is more than likely not triggered on the simulator because the device is not actually moving. Even on a real device, sometimes the fix won't kick in and sometimes it will depending on how much you've moved the device before turning it.

mhulse commented 11 years ago

@evanblack Ah, that's interesting. Thanks for clarifying. Personally, I've stopped using this script because the latest iOS appears to have fixed the bug, though I can't seem to find any official docs that say this.

gprasant commented 10 years ago

close this issue ?