dont prevent page scrolling when swiping on embedded decks
This commit is contained in:
parent
cca2a3cdf3
commit
a0a1ae193f
9 changed files with 54 additions and 29 deletions
|
@ -24,6 +24,18 @@ export const queryAll = ( el, selector ) => {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* classList.toggle() with cross browser support
|
||||
*/
|
||||
export const toggleClass = ( el, className, value ) => {
|
||||
if( value ) {
|
||||
el.classList.add( className );
|
||||
}
|
||||
else {
|
||||
el.classList.remove( className );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility for deserializing a value.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue