Disable overscroll in IE11 mode

This commit is contained in:
Adam Wathan 2020-07-28 12:13:34 -04:00
parent 77ccb5c957
commit bb8a221eeb
7 changed files with 441 additions and 40 deletions

View file

@ -1,5 +1,9 @@
export default function() {
return function({ addUtilities, variants }) {
return function({ addUtilities, variants, target }) {
if (target('overscrollBehavior') === 'ie11') {
return
}
addUtilities(
{
'.overscroll-auto': { 'overscroll-behavior': 'auto' },
@ -12,7 +16,7 @@ export default function() {
'.overscroll-x-contain': { 'overscroll-behavior-x': 'contain' },
'.overscroll-x-none': { 'overscroll-behavior-x': 'none' },
},
variants('overscroll')
variants('overscrollBehavior')
)
}
}