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:
scottjehl 2012-01-25 17:39:13 +07:00
parent 56607b946c
commit 544cdb49d6

View file

@ -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 );
}
});
},