Skip to content

Commit 440be55

Browse files
author
scottjehl
committed
changed the name of the overflow support test and class to touchOverflow / touch-overflow
1 parent c8e676d commit 440be55

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

js/jquery.mobile.support.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ $.extend( $.support, {
7070
pushState: "pushState" in history && "replaceState" in history,
7171
mediaquery: $.mobile.media( "only all" ),
7272
cssPseudoElement: !!propExists( "content" ),
73-
overflowScrollingTouch: !!propExists( "overflowScrolling" ),
73+
touchOverflow: !!propExists( "overflowScrolling" ),
7474
boxShadow: !!propExists( "boxShadow" ) && !bb,
7575
scrollTop: ( "pageXOffset" in window || "scrollTop" in document.documentElement || "scrollTop" in fakeBody[ 0 ] ) && !webos,
7676
dynamicBaseTag: baseTagTest(),
@@ -119,8 +119,8 @@ if ( !$.support.boxShadow ) {
119119
}
120120

121121
// For opting into touch overflow scrolling
122-
if( $.support.overflowScrollingTouch ){
123-
$( "html" ).addClass( "ui-mobile-overflow-scrolling" );
122+
if( $.support.touchOverflow ){
123+
$( "html" ).addClass( "ui-mobile-touch-overflow" );
124124
}
125125

126126
})( jQuery );

themes/default/jquery.mobile.core.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
.landscape .ui-page { min-height: 300px; }
2424

2525
/* native overflow scrolling */
26-
.ui-mobile.ui-mobile-overflow-scrolling .ui-page {
26+
.ui-mobile.ui-mobile-touch-overflow .ui-page {
2727
overflow: auto;
2828
height: 100%;
2929
-webkit-overflow-scrolling: touch;

0 commit comments

Comments
 (0)