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

Commit

Permalink
Addresses #5041. Event timing difference in iOS 6 was causing zoom to…
Browse files Browse the repository at this point in the history
… be disabled and immediately re-enabled prior to the zoom taking place.
  • Loading branch information
jaspermdegroot committed Nov 29, 2012
1 parent 7fb2c7b commit de35dc4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions js/jquery.mobile.forms.select.js
Expand Up @@ -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);
}
});
},
Expand Down

0 comments on commit de35dc4

Please sign in to comment.