Skip to content

Commit d2b4c45

Browse files
1 parent d90fd70 commit d2b4c45

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

docs/pages/branding/mui-x.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ const communityData = [
490490
const Slider = styled('div')(({ theme }) => ({
491491
scrollSnapType: 'x mandatory',
492492
display: 'flex',
493-
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
493+
// Add iOS momentum scrolling for iOS < 13.0
494+
WebkitOverflowScrolling: 'touch',
494495
overflowX: 'scroll',
495496
margin: '0 -15px',
496497
'& > div': {

packages/material-ui/src/DialogContent/DialogContent.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ const DialogContentRoot = styled('div', {
2929
},
3030
})(({ theme, styleProps }) => ({
3131
flex: '1 1 auto',
32-
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
32+
// Add iOS momentum scrolling for iOS < 13.0
33+
WebkitOverflowScrolling: 'touch',
3334
overflowY: 'auto',
3435
padding: '20px 24px',
3536
...(styleProps.dividers

packages/material-ui/src/Drawer/Drawer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ const DrawerPaper = styled(Paper, {
7979
height: '100%',
8080
flex: '1 0 auto',
8181
zIndex: theme.zIndex.drawer,
82-
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
82+
// Add iOS momentum scrolling for iOS < 13.0
83+
WebkitOverflowScrolling: 'touch',
8384
// temporary style
8485
position: 'fixed',
8586
top: 0,

packages/material-ui/src/ImageList/ImageList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const ImageListRoot = styled('ul', {
3636
overflowY: 'auto',
3737
listStyle: 'none',
3838
padding: 0,
39-
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
39+
// Add iOS momentum scrolling for iOS < 13.0
40+
WebkitOverflowScrolling: 'touch',
4041
/* Styles applied to the root element if `variant="masonry"`. */
4142
...(styleProps.variant === 'masonry' && {
4243
display: 'block',

packages/material-ui/src/Menu/Menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const MenuPaper = styled(Paper, {
4949
// height. This ensures a tapable area outside of the simple menu with which to dismiss
5050
// the menu.
5151
maxHeight: 'calc(100% - 96px)',
52-
// Add iOS momentum scrolling.
52+
// Add iOS momentum scrolling for iOS < 13.0
5353
WebkitOverflowScrolling: 'touch',
5454
});
5555

packages/material-ui/src/Tabs/Tabs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ const TabsRoot = styled('div', {
113113
})(({ styleProps, theme }) => ({
114114
overflow: 'hidden',
115115
minHeight: 48,
116-
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
116+
// Add iOS momentum scrolling for iOS < 13.0
117+
WebkitOverflowScrolling: 'touch',
117118
display: 'flex',
118119
...(styleProps.vertical && {
119120
flexDirection: 'column',

0 commit comments

Comments
 (0)