1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-01 12:20:33 +02:00

readerScrollBar -> readerScrollbar

This commit is contained in:
Hakim El Hattab
2023-10-12 14:03:28 +02:00
parent a7d0916f28
commit b8b55b8d4c
6 changed files with 8 additions and 8 deletions

View File

@@ -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)

View File

@@ -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();
@@ -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' );