Disable overscroll in IE11 mode
This commit is contained in:
parent
77ccb5c957
commit
bb8a221eeb
7 changed files with 441 additions and 40 deletions
|
|
@ -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')
|
||||
)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue