changed the name of the overflow support test and class to touchOverflow / touch-overflow

This commit is contained in:
scottjehl 2011-09-07 09:24:36 -04:00
parent c8e676d591
commit 440be55f2b
2 changed files with 4 additions and 4 deletions

View file

@ -70,7 +70,7 @@ $.extend( $.support, {
pushState: "pushState" in history && "replaceState" in history,
mediaquery: $.mobile.media( "only all" ),
cssPseudoElement: !!propExists( "content" ),
overflowScrollingTouch: !!propExists( "overflowScrolling" ),
touchOverflow: !!propExists( "overflowScrolling" ),
boxShadow: !!propExists( "boxShadow" ) && !bb,
scrollTop: ( "pageXOffset" in window || "scrollTop" in document.documentElement || "scrollTop" in fakeBody[ 0 ] ) && !webos,
dynamicBaseTag: baseTagTest(),
@ -119,8 +119,8 @@ if ( !$.support.boxShadow ) {
}
// For opting into touch overflow scrolling
if( $.support.overflowScrollingTouch ){
$( "html" ).addClass( "ui-mobile-overflow-scrolling" );
if( $.support.touchOverflow ){
$( "html" ).addClass( "ui-mobile-touch-overflow" );
}
})( jQuery );

View file

@ -23,7 +23,7 @@
.landscape .ui-page { min-height: 300px; }
/* native overflow scrolling */
.ui-mobile.ui-mobile-overflow-scrolling .ui-page {
.ui-mobile.ui-mobile-touch-overflow .ui-page {
overflow: auto;
height: 100%;
-webkit-overflow-scrolling: touch;