mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-14 08:25:05 +01:00
don't show reader scroll bar when there is no overflow, reader style tweaks
This commit is contained in:
parent
836967d8ab
commit
c4e322ce79
9 changed files with 33 additions and 31 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue