improved qualifications so that iOS5 gets the old-style fixed headers and footers when touchOverflow is disabled (which is the default).

This commit is contained in:
scottjehl 2011-09-09 12:27:59 -04:00
parent f8e056bb29
commit 2369e2fa32

View file

@ -15,7 +15,7 @@ var slideDownClass = "ui-header-fixed ui-fixed-inline fade",
$.fn.fixHeaderFooter = function( options ) {
if ( !$.support.scrollTop ) {
if ( !$.support.scrollTop || ( $.support.touchOverflow && $.mobile.touchOverflowEnabled ) ) {
return this;
}
@ -37,7 +37,7 @@ $.fn.fixHeaderFooter = function( options ) {
// single controller for all showing,hiding,toggling
$.mobile.fixedToolbars = (function() {
if ( !$.support.scrollTop || $.support.touchOverflow ) {
if ( !$.support.scrollTop || ( $.support.touchOverflow && $.mobile.touchOverflowEnabled ) ) {
return;
}
@ -361,7 +361,7 @@ $( document ).bind( "pagecreate create", function( event ) {
$( event.target ).each(function() {
if ( !$.support.scrollTop || $.support.touchOverflow ) {
if ( !$.support.scrollTop || ( $.support.touchOverflow && $.mobile.touchOverflowEnabled ) ) {
return this;
}