Browse Source

readerScrollBar -> readerScrollbar

Hakim El Hattab 1 year ago
parent
commit
b8b55b8d4c
6 changed files with 4 additions and 4 deletions
  1. 0 0
      dist/reveal.esm.js
  2. 0 0
      dist/reveal.esm.js.map
  3. 0 0
      dist/reveal.js
  4. 0 0
      dist/reveal.js.map
  5. 1 1
      js/config.js
  6. 3 3
      js/controllers/reader.js

File diff suppressed because it is too large
+ 0 - 0
dist/reveal.esm.js


File diff suppressed because it is too large
+ 0 - 0
dist/reveal.esm.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/reveal.js


File diff suppressed because it is too large
+ 0 - 0
dist/reveal.js.map


+ 1 - 1
js/config.js

@@ -280,7 +280,7 @@ export default {
 	// - 'auto':    Show the scrollbar while scrolling, hide while idle
 	// - 'auto':    Show the scrollbar while scrolling, hide while idle
 	// - true:      Always show the scrollbar
 	// - true:      Always show the scrollbar
 	// - false:     Never show the scrollbar
 	// - false:     Never show the scrollbar
-	readerScrollBar: 'auto',
+	readerScrollbar: 'auto',
 
 
 	// Responsively activate the reader mode when we reach the specified
 	// Responsively activate the reader mode when we reach the specified
 	// width (in pixels)
 	// width (in pixels)

+ 3 - 3
js/controllers/reader.js

@@ -361,9 +361,9 @@ export default class Reader {
 			return page;
 			return page;
 		} );
 		} );
 
 
-		this.viewportElement.setAttribute( 'data-reader-scroll-bar', config.readerScrollBar )
+		this.viewportElement.setAttribute( 'data-reader-scroll-bar', config.readerScrollbar )
 
 
-		if( config.readerScrollBar ) {
+		if( config.readerScrollbar ) {
 			// Create the progress bar if it doesn't already exist
 			// Create the progress bar if it doesn't already exist
 			if( !this.progressBar ) this.createProgressBar();
 			if( !this.progressBar ) this.createProgressBar();
 
 
@@ -472,7 +472,7 @@ export default class Reader {
 
 
 		clearTimeout( this.hideProgressBarTimeout );
 		clearTimeout( this.hideProgressBarTimeout );
 
 
-		if( this.Reveal.getConfig().readerScrollBar === 'auto' && !this.draggingProgressBar ) {
+		if( this.Reveal.getConfig().readerScrollbar === 'auto' && !this.draggingProgressBar ) {
 
 
 			this.hideProgressBarTimeout = setTimeout( () => {
 			this.hideProgressBarTimeout = setTimeout( () => {
 				this.progressBar.classList.remove( 'visible' );
 				this.progressBar.classList.remove( 'visible' );

Some files were not shown because too many files changed in this diff