mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
exclude non-iOS platforms from this behavior
This commit is contained in:
parent
40c400d657
commit
f5260ab9e5
1 changed files with 6 additions and 0 deletions
|
|
@ -5,6 +5,12 @@
|
|||
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.zoom" ], function( $ ) {
|
||||
//>>excludeEnd("jqmBuildExclude");
|
||||
( 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 ) ){
|
||||
return;
|
||||
}
|
||||
|
||||
var zoom = $.mobile.zoom,
|
||||
evt, x, y, z, aig;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue