Permalink
Browse files

disabled the iOS orientationchange fix in iOS6+ as it's no longer needed

  • Loading branch information...
1 parent 731afeb commit 74a0b2e7507f9b1664762da9a7ac0dcc69f2e59c Scott Jehl committed Dec 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/jquery.mobile.zoom.iosorientationfix.js
@@ -8,7 +8,8 @@ define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.zoom" ], function(
(function( $, window ) {
// This fix addresses an iOS bug, so return early if the UA claims it's something else.
- if ( !(/iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1 ) ) {
+ var ua = navigator.userAgent;
+ if( !( /iPhone|iPad|iPod/.test( navigator.platform ) && /OS [1-5]_[0-9_]* like Mac OS X/i.test( ua ) && ua.indexOf( "AppleWebKit" ) > -1 ) ){
return;
}

0 comments on commit 74a0b2e

Please sign in to comment.