From b39c320becd883a31f8bcb183d1b11dd010e64ac Mon Sep 17 00:00:00 2001 From: scottjehl Date: Wed, 25 Jan 2012 17:28:25 +0700 Subject: [PATCH] preventFocusZoom default is true on iOS platforms, false otherwise, as it is only here to address an iOS bug. --- js/jquery.mobile.forms.select.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/jquery.mobile.forms.select.js b/js/jquery.mobile.forms.select.js index 72a6456e..1fd03084 100644 --- a/js/jquery.mobile.forms.select.js +++ b/js/jquery.mobile.forms.select.js @@ -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'))" },