Fixed an issue where scrollbar + tap to paginate in book reader would not allow the user to use mouse to scroll. (#1055)

This commit is contained in:
Joseph Milazzo 2022-02-11 06:15:09 -08:00 committed by GitHub
parent a8e7e00872
commit 91aa46855b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View File

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

View File

@ -202,9 +202,22 @@ $primary-color: #0062cc;
.right {
position: fixed;
right: 0px;
right: 0px; // with scrollbar: 17px
top: 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;