Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 74a0b2e

Browse files
author
Scott Jehl
committed
disabled the iOS orientationchange fix in iOS6+ as it's no longer needed
1 parent 731afeb commit 74a0b2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/jquery.mobile.zoom.iosorientationfix.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.zoom" ], function(
88
(function( $, window ) {
99

1010
// This fix addresses an iOS bug, so return early if the UA claims it's something else.
11-
if ( !(/iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1 ) ) {
11+
var ua = navigator.userAgent;
12+
if( !( /iPhone|iPad|iPod/.test( navigator.platform ) && /OS [1-5]_[0-9_]* like Mac OS X/i.test( ua ) && ua.indexOf( "AppleWebKit" ) > -1 ) ){
1213
return;
1314
}
1415

0 commit comments

Comments
 (0)