Permalink
Browse files

improved qualifications so that iOS5 gets the old-style fixed headers…

… and footers when touchOverflow is disabled (which is the default).
  • Loading branch information...
1 parent f8e056b commit 2369e2fa322e721c687408f790230efe4f621fef scottjehl committed Sep 9, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/jquery.mobile.fixHeaderFooter.js
@@ -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;
}

0 comments on commit 2369e2f

Please sign in to comment.