mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-26 00:54:43 +00:00
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:
parent
f8e056bb29
commit
2369e2fa32
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue