replace classList.toggle( ..., force ) as it's broken in ff
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.controls.style.display = ( config.controls && dom.controls ) ? 'block' : 'none';
|
||||||
dom.progress.style.display = ( config.progress && dom.progress ) ? 'block' : 'none';
|
dom.progress.style.display = ( config.progress && dom.progress ) ? 'block' : 'none';
|
||||||
|
|
||||||
dom.wrapper.classList.toggle( 'rtl', config.rtl );
|
if( config.rtl ) {
|
||||||
dom.wrapper.classList.toggle( 'center', config.center );
|
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 ) {
|
if( config.mouseWheel ) {
|
||||||
document.addEventListener( 'DOMMouseScroll', onDocumentMouseScroll, false ); // FF
|
document.addEventListener( 'DOMMouseScroll', onDocumentMouseScroll, false ); // FF
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue