Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
Fixed an issue where scrollbar + tap to paginate in book reader would not allow the user to use mouse to scroll. (#1055)
Joseph Milazzo91aa46855b78
diff --git a/UI/Web/src/app/book-reader/book-reader/book-reader.component.html b/UI/Web/src/app/book-reader/book-reader/book-reader.component.htmlindex 4ea4f1e4a..4d9669345 100644--- a/UI/Web/src/app/book-reader/book-reader/book-reader.component.html+++ b/UI/Web/src/app/book-reader/book-reader/book-reader.component.html@@ -117,7 +117,7 @@[innerHtml]="page" *ngIf="page !== undefined"></div><div class="left {{clickOverlayClass('left')}} no-observe" (click)="prevPage()" *ngIf="clickToPaginate" tabindex="-1"></div>- <div class="right {{clickOverlayClass('right')}} no-observe" (click)="nextPage()" *ngIf="clickToPaginate" tabindex="-1"></div>+ <div class="{{scrollbarNeeded ? 'right-with-scrollbar' : 'right'}} {{clickOverlayClass('right')}} no-observe" (click)="nextPage()" *ngIf="clickToPaginate" tabindex="-1"></div><div *ngIf="page !== undefined && scrollbarNeeded"><ng-container [ngTemplateOutlet]="actionBar"></ng-container>diff --git a/UI/Web/src/app/book-reader/book-reader/book-reader.component.scss b/UI/Web/src/app/book-reader/book-reader/book-reader.component.scssindex 12823f996..1d70b604d 100644--- a/UI/Web/src/app/book-reader/book-reader/book-reader.component.scss+++ b/UI/Web/src/app/book-reader/book-reader/book-reader.component.scss@@ -202,9 +202,22 @@ $primary-color: #0062cc;.right {position: fixed;- right: 0px;+ right: 0px; // with scrollbar: 17pxtop: 0px;- width: 20%;+ width: 20%; // with scrollbar: 18%+ height: 100%;+ z-index: 2;+ cursor: pointer;+ opacity: 0;+ background: transparent;+}++// This class pushes the click area to the left a bit to let users click the scrollbar+.right-with-scrollbar {+ position: fixed;+ right: 17px;+ top: 0px;+ width: 18%;height: 100%;z-index: 2;cursor: pointer;