File tree Expand file tree Collapse file tree 6 files changed +11
-6
lines changed Expand file tree Collapse file tree 6 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,8 @@ const communityData = [
490
490
const Slider = styled ( 'div' ) ( ( { theme } ) => ( {
491
491
scrollSnapType : 'x mandatory' ,
492
492
display : 'flex' ,
493
- WebkitOverflowScrolling : 'touch' , // Add iOS momentum scrolling.
493
+ // Add iOS momentum scrolling for iOS < 13.0
494
+ WebkitOverflowScrolling : 'touch' ,
494
495
overflowX : 'scroll' ,
495
496
margin : '0 -15px' ,
496
497
'& > div' : {
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ const DialogContentRoot = styled('div', {
29
29
} ,
30
30
} ) ( ( { theme, styleProps } ) => ( {
31
31
flex : '1 1 auto' ,
32
- WebkitOverflowScrolling : 'touch' , // Add iOS momentum scrolling.
32
+ // Add iOS momentum scrolling for iOS < 13.0
33
+ WebkitOverflowScrolling : 'touch' ,
33
34
overflowY : 'auto' ,
34
35
padding : '20px 24px' ,
35
36
...( styleProps . dividers
Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ const DrawerPaper = styled(Paper, {
79
79
height : '100%' ,
80
80
flex : '1 0 auto' ,
81
81
zIndex : theme . zIndex . drawer ,
82
- WebkitOverflowScrolling : 'touch' , // Add iOS momentum scrolling.
82
+ // Add iOS momentum scrolling for iOS < 13.0
83
+ WebkitOverflowScrolling : 'touch' ,
83
84
// temporary style
84
85
position : 'fixed' ,
85
86
top : 0 ,
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ const ImageListRoot = styled('ul', {
36
36
overflowY : 'auto' ,
37
37
listStyle : 'none' ,
38
38
padding : 0 ,
39
- WebkitOverflowScrolling : 'touch' , // Add iOS momentum scrolling.
39
+ // Add iOS momentum scrolling for iOS < 13.0
40
+ WebkitOverflowScrolling : 'touch' ,
40
41
/* Styles applied to the root element if `variant="masonry"`. */
41
42
...( styleProps . variant === 'masonry' && {
42
43
display : 'block' ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const MenuPaper = styled(Paper, {
49
49
// height. This ensures a tapable area outside of the simple menu with which to dismiss
50
50
// the menu.
51
51
maxHeight : 'calc(100% - 96px)' ,
52
- // Add iOS momentum scrolling.
52
+ // Add iOS momentum scrolling for iOS < 13.0
53
53
WebkitOverflowScrolling : 'touch' ,
54
54
} ) ;
55
55
Original file line number Diff line number Diff line change @@ -113,7 +113,8 @@ const TabsRoot = styled('div', {
113
113
} ) ( ( { styleProps, theme } ) => ( {
114
114
overflow : 'hidden' ,
115
115
minHeight : 48 ,
116
- WebkitOverflowScrolling : 'touch' , // Add iOS momentum scrolling.
116
+ // Add iOS momentum scrolling for iOS < 13.0
117
+ WebkitOverflowScrolling : 'touch' ,
117
118
display : 'flex' ,
118
119
...( styleProps . vertical && {
119
120
flexDirection : 'column' ,
You can’t perform that action at this time.
0 commit comments