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.
  • Loading branch information...
1 parent 7fb2c7b commit de35dc470260d76a1157545cd557b992f214c75f @jaspermdegroot jaspermdegroot committed Nov 29, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 js/jquery.mobile.forms.select.js
View
9 js/jquery.mobile.forms.select.js
@@ -178,10 +178,11 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
if( self.options.preventFocusZoom ){
$.mobile.zoom.disable( true );
}
- })
- .bind( "mouseup", function() {
- if( self.options.preventFocusZoom ){
- $.mobile.zoom.enable( true );
+ }).bind( "mouseup", function() {
+ if ( self.options.preventFocusZoom ) {
+ setTimeout(function() {
+ $.mobile.zoom.enable( true );
+ }, 0);
}
});
},

0 comments on commit de35dc4

Please sign in to comment.