Skip to content
Snippets Groups Projects
Commit c2ab30b8 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

replace classList.toggle( ..., force ) as it's broken in ff

parent 4c57ad91
No related branches found
No related tags found
No related merge requests found
...@@ -354,8 +354,19 @@ var Reveal = (function(){ ...@@ -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
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment