mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-01 12:20:33 +02:00
don't show reader scroll bar when there is no overflow, reader style tweaks
This commit is contained in:
@@ -363,7 +363,7 @@ export default class Reader {
|
||||
|
||||
this.viewportElement.setAttribute( 'data-reader-scroll-bar', config.readerScrollbar )
|
||||
|
||||
if( config.readerScrollbar ) {
|
||||
if( config.readerScrollbar && this.pages.length > 1 ) {
|
||||
// Create the progress bar if it doesn't already exist
|
||||
if( !this.progressBar ) this.createProgressBar();
|
||||
|
||||
|
Reference in New Issue
Block a user