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

Commit de35dc4

Browse files
Addresses #5041. Event timing difference in iOS 6 was causing zoom to be disabled and immediately re-enabled prior to the zoom taking place.
1 parent 7fb2c7b commit de35dc4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

js/jquery.mobile.forms.select.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,11 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
178178
if( self.options.preventFocusZoom ){
179179
$.mobile.zoom.disable( true );
180180
}
181-
})
182-
.bind( "mouseup", function() {
183-
if( self.options.preventFocusZoom ){
184-
$.mobile.zoom.enable( true );
181+
}).bind( "mouseup", function() {
182+
if ( self.options.preventFocusZoom ) {
183+
setTimeout(function() {
184+
$.mobile.zoom.enable( true );
185+
}, 0);
185186
}
186187
});
187188
},

0 commit comments

Comments
 (0)