mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-16 10:33:08 +00:00
switched up this check so it binds the events regardless of initial state, in case it's toggled later
This commit is contained in:
parent
ae726d2d45
commit
3a9c22eacc
1 changed files with 8 additions and 6 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue