Skip to content

Commit dae560d

Browse files
author
scottjehl
committed
added support test & html class for overflow-scrolling-touch
1 parent 2f63fdf commit dae560d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

js/jquery.mobile.support.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +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" ),
7374
boxShadow: !!propExists( "boxShadow" ) && !bb,
7475
scrollTop: ( "pageXOffset" in window || "scrollTop" in document.documentElement || "scrollTop" in fakeBody[ 0 ] ) && !webos,
7576
dynamicBaseTag: baseTagTest(),
@@ -117,4 +118,9 @@ if ( !$.support.boxShadow ) {
117118
$( "html" ).addClass( "ui-mobile-nosupport-boxshadow" );
118119
}
119120

120-
})( jQuery );
121+
// For opting into touch overflow scrolling
122+
if( $.support.overflowScrollingTouch ){
123+
$( "html" ).addClass( "ui-mobile-overflow-scrolling" );
124+
}
125+
126+
})( jQuery );

0 commit comments

Comments
 (0)