Skip to content

Commit

Permalink
readerScrollBar -> readerScrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Oct 12, 2023
1 parent a7d0916 commit b8b55b8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/reveal.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export default {
// - 'auto': Show the scrollbar while scrolling, hide while idle
// - true: Always show the scrollbar
// - false: Never show the scrollbar
readerScrollBar: 'auto',
readerScrollbar: 'auto',

// Responsively activate the reader mode when we reach the specified
// width (in pixels)
Expand Down
6 changes: 3 additions & 3 deletions js/controllers/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ export default class Reader {
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
if( !this.progressBar ) this.createProgressBar();

Expand Down Expand Up @@ -472,7 +472,7 @@ export default class Reader {

clearTimeout( this.hideProgressBarTimeout );

if( this.Reveal.getConfig().readerScrollBar === 'auto' && !this.draggingProgressBar ) {
if( this.Reveal.getConfig().readerScrollbar === 'auto' && !this.draggingProgressBar ) {

this.hideProgressBarTimeout = setTimeout( () => {
this.progressBar.classList.remove( 'visible' );
Expand Down

0 comments on commit b8b55b8

Please sign in to comment.