1
0
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:
Hakim El Hattab
2023-10-17 13:59:11 +02:00
parent 836967d8ab
commit c4e322ce79
9 changed files with 33 additions and 31 deletions

View File

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