@@ -185,25 +185,34 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
185
185
} ) ;
186
186
187
187
// In many situations, iOS will zoom into the select upon tap, this prevents that from happening
188
- if ( self . options . preventFocusZoom ) {
189
- self . button . bind ( "vmousedown" , function ( ) {
190
- $ . mobile . zoom . disable ( true ) ;
191
- } ) ;
192
- self . label . bind ( "click focus" , function ( ) {
193
- $ . mobile . zoom . disable ( true ) ;
194
- } ) ;
195
- self . select . bind ( "focus" , function ( ) {
196
- $ . mobile . zoom . disable ( true ) ;
197
- } ) ;
198
- self . button . bind ( "mouseup" , function ( ) {
188
+ self . button . bind ( "vmousedown" , function ( ) {
189
+ if ( self . options . preventFocusZoom ) {
190
+ $ . mobile . zoom . disable ( true ) ;
191
+ }
192
+ } ) ;
193
+ self . label . bind ( "click focus" , function ( ) {
194
+ if ( self . options . preventFocusZoom ) {
195
+ $ . mobile . zoom . disable ( true ) ;
196
+ }
197
+ } ) ;
198
+ self . select . bind ( "focus" , function ( ) {
199
+ if ( self . options . preventFocusZoom ) {
200
+ $ . mobile . zoom . disable ( true ) ;
201
+ }
202
+ } ) ;
203
+ self . button . bind ( "mouseup" , function ( ) {
204
+ if ( self . options . preventFocusZoom ) {
199
205
setTimeout ( function ( ) {
200
206
$ . mobile . zoom . enable ( true ) ;
201
207
} , 0 ) ;
202
- } ) ;
203
- self . select . bind ( "blur" , function ( ) {
208
+ }
209
+ } ) ;
210
+ self . select . bind ( "blur" , function ( ) {
211
+ if ( self . options . preventFocusZoom ) {
204
212
$ . mobile . zoom . enable ( true ) ;
205
- } ) ;
206
- }
213
+ }
214
+ } ) ;
215
+
207
216
} ,
208
217
209
218
selected : function ( ) {
0 commit comments