modified so that the select zoom calls manipulate the locked property, to ensure other zoom plugins don't mess with it during focus

This commit is contained in:
scottjehl 2012-01-24 17:25:10 +07:00
parent 6e12e62123
commit 9da89ff6db

View file

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