preventFocusZoom default is true on iOS platforms, false otherwise, as it is only here to address an iOS bug.

This commit is contained in:
scottjehl 2012-01-25 17:28:25 +07:00
parent f5260ab9e5
commit b39c320bec

View file

@ -21,7 +21,8 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
hidePlaceholderMenuItems: true,
closeText: "Close",
nativeMenu: true,
preventFocusZoom: true,
// This option defaults to true on iOS devices.
preventFocusZoom: /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1,
initSelector: "select:not(:jqmData(role='slider'))"
},