mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-08 08:30:58 +00:00
changed the name of the overflow support test and class to touchOverflow / touch-overflow
This commit is contained in:
parent
c8e676d591
commit
440be55f2b
2 changed files with 4 additions and 4 deletions
|
|
@ -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 );
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue