Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Issue 3984: jumping fixed header IOS & Android RC2 #4225

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions js/jquery.mobile.fixedToolbar.js
Expand Up @@ -122,6 +122,11 @@ define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.
// This method is meant to disable zoom while a fixed-positioned toolbar page is visible
$el.closest( ".ui-page" )
.bind( "pagebeforeshow", function(){
//https://github.com/jquery/jquery-mobile/issues/3984
//scrollTop(0) apparently forces Safari viewport to the top of the page
//which prevents the position:fixed toolbar from blinking during page transition
$('body, html').scrollTop(0);

if( o.disablePageZoom ){
$.mobile.zoom.disable( true );
}
Expand Down