replace classList.toggle( ..., force ) as it's broken in ff
This commit is contained in:
parent
4c57ad918b
commit
c2ab30b87e
15
js/reveal.js
15
js/reveal.js
|
@ -354,8 +354,19 @@ var Reveal = (function(){
|
|||
dom.controls.style.display = ( config.controls && dom.controls ) ? 'block' : 'none';
|
||||
dom.progress.style.display = ( config.progress && dom.progress ) ? 'block' : 'none';
|
||||
|
||||
dom.wrapper.classList.toggle( 'rtl', config.rtl );
|
||||
dom.wrapper.classList.toggle( 'center', config.center );
|
||||
if( config.rtl ) {
|
||||
dom.wrapper.classList.add( 'rtl' );
|
||||
}
|
||||
else {
|
||||
dom.wrapper.classList.remove( 'rtl' );
|
||||
}
|
||||
|
||||
if( config.center ) {
|
||||
dom.wrapper.classList.add( 'center' );
|
||||
}
|
||||
else {
|
||||
dom.wrapper.classList.remove( 'center' );
|
||||
}
|
||||
|
||||
if( config.mouseWheel ) {
|
||||
document.addEventListener( 'DOMMouseScroll', onDocumentMouseScroll, false ); // FF
|
||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user