mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-30 10:54:44 +00:00
if the option to disable page zoom on pages that contain a fixed toolbar is true, the plugin needs to use the lock to prevent other plugins from enabling zoom again while the page is in view. Fixes #3477
This commit is contained in:
parent
56607b946c
commit
544cdb49d6
1 changed files with 3 additions and 3 deletions
|
|
@ -116,15 +116,15 @@ define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.core", "jquery.mobile
|
|||
$el.closest( ".ui-page" )
|
||||
.bind( "pagebeforeshow", function(){
|
||||
if( o.togglePageZoom ){
|
||||
$.mobile.zoom.disable();
|
||||
$.mobile.zoom.disable( true );
|
||||
}
|
||||
if( o.visibleOnPageShow ){
|
||||
self.show();
|
||||
}
|
||||
} )
|
||||
.bind( "pagehide", function(){
|
||||
.bind( "pagebeforehide", function(){
|
||||
if( o.togglePageZoom ){
|
||||
$.mobile.zoom.enable();
|
||||
$.mobile.zoom.enable( true );
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue