switched up this check so it binds the events regardless of initial state, in case it's toggled later

This commit is contained in:
scottjehl 2012-01-19 20:07:49 +07:00
parent ae726d2d45
commit 3a9c22eacc

View file

@ -151,14 +151,16 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
});
// In many situations, iOS will zoom into the select upon tap, this prevents that from happening
if( self.options.preventFocusZoom ){
self.button.bind( "vmousedown", function() {
self.button.bind( "vmousedown", function() {
if( self.options.preventFocusZoom ){
$.mobile.zoom.disable();
})
.bind( "mouseup", function() {
}
})
.bind( "mouseup", function() {
if( self.options.preventFocusZoom ){
$.mobile.zoom.enable();
});
}
}
});
},
selected: function() {